2 ms·
It's all about monetization. If you look at the source of a typical media website you'll see that most of what gets downloaded and most of the JavaScript execut
by fauigerzigerk 14y ago
It's all about monetization. If you look at the source of a typical media website you'll see that most of what gets downloaded and most of the JavaScript executed on page load is adverts, social crap and analytics stuff.
It's just how we pay for those services.
- pavs 14y agoNowadays most major analytics and ads are served asynchronously.
- cheald 14y agoThe hitching frequently happens because adding iframes to a document is damned expensive, and requires the browser to concoct a whole new DOM per iframe. While analytics don't tend to make heavy use of iframes, advertisements absolutely do.
- fauigerzigerk 14y agoYes, but that doesn't help much against the JavaScriptional (and rendering) bout of hyperactivity that that ensues shortly after the first HTTP response and later on while using the site. The complexity of embedding all that stuff is enormous. Just block it all for a day and see what that does to the perceived speed of the site.
- pavs 14y agoI have found the biggest culprits are the social widgets and fancy js library. Ads and analytics rarely slows down a site (for me). There are exception though like few days ago I bumper in to a site that had 6 different analytics. That's just crazy, also outside widgets can load their own analytics (I think disqus does that). Things can quickly turn dirty.
- pbhjpbhj 14y agoI was working on a page the other day for optimisation - 97/100 score now. The main issues that remain are to do with FB, Google - serve images from a consistent domain, - leverage browser caching, - minify javascript (that's a Google problem, I mean, really?!), - ga.js and plusone causing reflows - script serialisation Doesn't appear there's much to be done about these from an end user perspective but they're not major slow downs as the page is well above the median load speed for similar pages.
- pavs 14y agoYeah pagespeed by Google always points out Google services for being un-optimized and slow.