Do you want to stop outputting JS on every page or posts where we don’t need to load Disqus Comment?
Then you land at the right place.
We have posted the simple function code that will help you to easily remove Disqus JS from the pages or posts where we haven’t enabled comment and save our page size…
…so our website would load fast and our users would get our page ready within seconds.
Just follow the below guide:
Remove Disqus JS on Anything but Posts or Pages
Just copy the below code and paste it into your WordPress theme’s functions.php file.
Save the file and check the result in your browser.
Let us know your opinion about this guide or if you have any questions, don’t hesitate to comment.
Also, Don’t forget to share this Remove Disqus JS loading on every page.