News for hackers. Stuff that matters.
Re:This Is Why Your Website Is Slow by ComputerGuru on Tuesday November 29, 2011 @02:37PM (#3291809)
We're running an experiment on our site, we've disabled ads entirely and we've seen an improvement in page load speeds across the board.

Unfortunately, some of the better-paying CPM ad networks have the slowest javascript ads the world has ever seen.

We're basically trying to see if removing ads improves our page load speed and therefore our SERP enough to somewhat offset the lost income.

Re:This Is Why Your Website Is Slow by jerhewet on Tuesday November 29, 2011 @03:45PM (#3292093)
Write some JS to delay loading the adverts until after all of the other content on your page(s) has been loaded and displayed. JQuery (especially) makes it easy to delay this kind of stuff and do the <div> injections well after your page is visible in the client browser.

I coded one two (three?) years ago for a contract, and it worked like a charm. Used it for tracking pixels, Google tracking, and a bunch of other stuff.

Surprised this kind of snippet isn't readily available on the intertubes.

Re:This Is Why Your Website Is Slow by jonasvp on Tuesday November 29, 2011 @04:20PM (#3292222)
Re:This Is Why Your Website Is Slow by jerhewet on Wednesday November 30, 2011 @08:41AM (#3294959)
Excellent! Haven't browsed all the links yet, but I didn't see any examples for injecting anything except trackers. Templates for some of the more common scripts like AddThis, and a few advertising examples, would be nice. Not that it's any harder, but some diversity would certainly help your cause.

Let me know if you'd like a few of my more devious snippets to add to your project, like overloading document.write (surprising how many of those damned advertising scripts still use document.write instead of div injection! :-\).

Re:This Is Why Your Website Is Slow by jonasvp on Wednesday November 30, 2011 @03:19PM (#3296719)
Sorry, didn't mean to imply it was my project. It's just one I'm using for a site with a lot of trackers (some clients do go hog-wild on those).
Re:This Is Why Your Website Is Slow by chalst on Tuesday November 29, 2011 @03:31PM (#3292034)
A plot of lag against income would be interesting. Is it the kind of thing you'd be interested in sharing?
Re:This Is Why Your Website Is Slow by lloeki on Tuesday November 29, 2011 @03:38PM (#3292067)
I was reading recently that Amazon A/B tests showed that increased load time in orders of milliseconds were significantly affecting sales.
Re:This Is Why Your Website Is Slow by jchrisa on Tuesday November 29, 2011 @04:35PM (#3292294)
here is a good entry point for this research

http://perspectives.mvdirona.com/2009/10/31/TheCostOfLatency...

Re:This Is Why Your Website Is Slow by chalst on Tuesday November 29, 2011 @03:49PM (#3292111)
I dimly recall reading something along those lines that came from Amazon, but I think it was a side remark, not a published study.

My suggestion was about plotting for content/advertiser networks the lag for their Javascript against the income the site derives from the network. This is quite likely to be somewhat sensitive information, at least to a degree, so sharing it would be generous.

Re:This Is Why Your Website Is Slow by rorrr on Tuesday November 29, 2011 @06:01PM (#3292715)
We iFramed all the ads. Problem solved. Ads load on separate pages. We're no longer affected by broken ads.