Stop the loading of Disqus Javascript on pages/posts where comments are closed or not available.
As of April 2026, Disqus Conditional JS Load is a WordPress Disqus plugin with 10 active installations and a 5/5 rating from 2 reviews. It has been downloaded 2.5K+ times in total. Requires WordPress 3.5+ and PHP false+. Available on WordPress.org since 2014. Last updated 11 years ago — may have compatibility concerns. Top alternative: Disqus Comment System.
Disqus is a third-party comment management system. However it loads its javascript code on every page indiscriminately. This code should only be loaded on pages where the comments form is actually going to load. Otherwise your site is wasting cycles including javascript that isn’t going to be used.
This plugin stops the Disqus plugin from loading its javascript on pages or posts where comments are closed. If comments are closed and there are no existing comments already, the JavaScript will be stopped from loading. Note that to avoid breaking the existing functionality, the JavaScript will still load if comments are closed but there are already some comments on a page/post.
Based on http://thomasgriffinmedia.com/blog/2012/11/tame-disqus-comments-in-wordpress/
Disclaimer: This plugin…
| WordPress | 3.5+ requiredTested up to 3.9.40 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.