Current time: 12-15-2019, 11:03 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Long delays with Facebook Like, Twitter, Adsense
07-29-2011, 09:43 PM
Post: #1
Long delays with Facebook Like, Twitter, Adsense
I use AddThis on my site which includes the Facebook Like button and Twitter button. I also run Adsense.

Every time I run the speed test, these scripts are dramatically slowing down the load time. Each of them takes at least 6 seconds, sometimes over 20!! The DNS/TTFB are fine but the "Content Download" is what's taking the time.

But I don't get anywhere close to that when I load pages myself, even on an old computer using IE, with a cleared cache. Why is there such a big delay for WebPageTest?
Find all posts by this user
Quote this message in a reply
07-30-2011, 01:31 AM
Post: #2
RE: Long delays with Facebook Like, Twitter, Adsense
Do you have a link to some test results to share?
Visit this user's website Find all posts by this user
Quote this message in a reply
07-30-2011, 05:37 AM
Post: #3
RE: Long delays with Facebook Like, Twitter, Adsense
Here is one example: http://www.webpagetest.org/result/110729...1/details/
Find all posts by this user
Quote this message in a reply
08-03-2011, 05:21 AM
Post: #4
RE: Long delays with Facebook Like, Twitter, Adsense
You've got a SERIOUS CPU utilization problem with the Javascript on that page. I re-ran the test with Dynatrace to get a javascript profile trace here: http://www.webpagetest.org/result/110802...35144ab75/

From what I can tell, it looks like you are dynamically adding the table to the DOM through Javascript - it looks like however that is being done took a solid 13 seconds in IE8, locking up the main thread and preventing anything else from happening.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-04-2011, 06:05 AM
Post: #5
RE: Long delays with Facebook Like, Twitter, Adsense
How do you view the profile trace? The download on that page appears to be a zip file containing some binary files.

The table is in the page source, it's not generated on the fly. But I do use DataTables to sort the table, which may slow down the page a little. But why would that make it say the Facebook like button takes 20+ seconds to download?
Find all posts by this user
Quote this message in a reply
08-04-2011, 06:12 AM
Post: #6
RE: Long delays with Facebook Like, Twitter, Adsense
The top logo takes you to the download page for Dynatrace Ajax Edition which is a great (free) javascript profiler for IE (and Firefox).

The Facebook like button just had the unfortunate luck to be downloading when the main browser thread locked up for 20+ seconds executing javascript (single-threaded nature of browsers, they don't do ANYTHING else when executing Javascript).
Visit this user's website Find all posts by this user
Quote this message in a reply
08-04-2011, 10:12 AM
Post: #7
RE: Long delays with Facebook Like, Twitter, Adsense
That's weird because it *always* seems to be the Facebook button, never a file from my site... well I'll keep looking into it and see if I can improve the performance.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)