Support » Fixing WordPress » Prevent loading of Twitter and FB script on Home Page

  • Resolved nikhilnaik



    The following script loads in the index page of my blog although there is no social media element in my homepage. [I picked it from the source code of my blog]

    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script><script type="text/javascript">
      (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = '';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    </script><script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); = id;
      js.src = "//";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    I am also not using any social media plugin. But I don’t know how the twitter, Google Plus and facebook share button script gets loaded on my homepage. I tried deactivating many of the plugins which have the social media element in them, but it did not help. How do I get rid of this or at least block the loading of these 3 scripts so as to reduce the number of requests?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Prevent loading of Twitter and FB script on Home Page’ is closed to new replies.