static.ak.fbcdn.net slows down pageload drastically

guneyozsan Feb 03, 2012 08:39PM EST

The page loading freezes while waiting for static.ak.fbcdn.net. I searched the net and it is a widespread problem because of Facebook servers. Ocasionally it is around 6 seconds and it can go uptop 20 seconds! There is a solution with JQuery for downloading the Facebook script after the page is loaded:

Using this...

$(document).ready(function() {
$.getScript("http://static.ak.fbcdn.net/connect.php/js/FB.Share", function() {
alert("Script loaded and executed.");
});
});

...instead of this...

<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

...solves the problem.

Source: http://stackoverflow.com/questions/4881164/loading-an-external-script-after-page-load-with-jquery

The problem is I'm using addthis to call facebook like button. And I don't know if it is possible and how to implement this solution to AddThis code. My AddThis code has something like this:

<a class="addthis_button_facebook_like" fb:like:layout="button_count" fb:like:href="https://www.facebook.com/pages/Guney-Ozsan/178606805563093"></a>

Thank you.

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 06, 2012 02:31PM EST
Unfortunately I don't know of a workaround for that, but I'll let our developers know to see if there's a way we can get it to load faster or use a workaround for loading Facebook.

This question is closed to new answers.

Still need help?


General Topics

 

Developers