6 ms·
Noticed this site was causing firefox to hang for about a minute and peg my CPU, so I profiled it: The Addthis script you're using has an onReady method that g
by warfangle 17y ago
Noticed this site was causing firefox to hang for about a minute and peg my CPU, so I profiled it:
The Addthis script you're using has an onReady method that gets called 94 times on pageload and takes an average 12 seconds to run each time. During this time Firefox gets the dreaded beachball/umbrella.
I'm having similar issues on a site we're using sharethis on, but not quite that bad on page load - it does increase the constant load on the cpu by about 15% though.
Be careful when using these widgets...
(macbook pro; 2.4ghz; 4gb ram; ff 3.0)
- NathanKP 17y agoI didn't have any problem opening it Safari. ;) Edit: I just tried it in Firefox 3.5.2 and no problem either. I'm running Mac OS X Snow Leopard on a Macbook 2ghz duo, 2gb ram. Possibilities: It could be Firefox 3.0, try updating. Or it might be the 64 bit power of Snow Leopard that makes it faster for me. But then again Firefox is still a 32 bit application.
- warfangle 17y agoEven so, it's pretty egregious that something so simple would be so heavy. Works fine in safari for me, too, but according to statcounter about 15% of people are still using FF 3.0.
- NathanKP 17y agoYes, I personally removed Addthis from my website. Social bookmark sharing isn't worth the extra overhead. And Sharethis is even worse than Addthis.
- twohanded 17y agoWas just wondering - what did you use to profile the page? Anything besides just firebug? I'm interested because we use AddThis as well, and I've noticed our site seems slow lately...
- warfangle 17y agoJust firebug. Activity monitor is what tipped me off. At least addthis doesn't load 100kb of 3rd party frameworks like sharethis does, though :)
- deleted 17y ago[deleted]