Removing Facebook API Call

Posted in: Newspaper
Post count: 24

Hi Team,
in the header of every page on my site I have a call to facebook
Row 9 of index.
<link rel=”pingback” href=”https://www.liberatedstocktrader.com/xmlrpc.php&#8221; />
<script>
window.fbAsyncInit = function() {
FB.init({
appId : ‘xxx’,
xfbml : true,
version : ‘v2.9’
});
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));
</script>

I am trying to speed up my site and do not want this sdk downloaded for every user of every page. How do I disable this?

https://www.liberatedstocktrader.com/

Thanks a lot.

Barry

Post count: 20685

Hi,

Maybe you entered that script in the theme header check if it is present there
http://prntscr.com/me8kk7
Or it could be entered in this section of the theme panel – http://prntscr.com/me8kxj
Or maybe a plugin is loading it in the header, check those as well.

Thanks

Post count: 24

Hi Simion, not there is nothing in those locations. I also have no fb plugins. Is there a way to track where the code comes from. I did a text search on the site at filesystem but found nothing.

Post count: 24

I found the problem, WP Quiz Plugin, fixed, thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.