Can you remove a plugin’s JS rendering, with a function?
-
Hi there
We want to remove certain JS files (from external sources like Facebook or Twitter) from loading on the homepage, as they are not needed. GT Metrix confirms they are slowing things a tad, and since we don’t use their functions on the homepage, is there a way to – from the URL of the JS file – stop it rendering in the code on a specific page?We only have Twitter on our blog, but it’s rendering on ALL pages in the code.
Here is an example of three files we don’t need to load.https://syndication.twitter.com/settings (10 minutes)
https://connect.facebook.net/en_GB/sdk.js?_=(code-hidden) (20 minutes)
https://platform.twitter.com/widgets.jsSo is there a way to prevent that showing on the homepage ID?
- The topic ‘Can you remove a plugin’s JS rendering, with a function?’ is closed to new replies.