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.