slows down pageload drastically

guneyozsan Feb 03, 2012 08:39PM EST

The page loading freezes while waiting for 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("", function() {
alert("Script loaded and executed.");

...instead of this...

<script src="" type="text/javascript"></script>

...solves the problem.


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=""></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