Hacker News new | past | comments | ask | show | jobs | submit login

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.




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.



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! :-\).


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).


A plot of lag against income would be interesting. Is it the kind of thing you'd be interested in sharing?


I was reading recently that Amazon A/B tests showed that increased load time in orders of milliseconds were significantly affecting sales.


here is a good entry point for this research

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


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.


We iFramed all the ads. Problem solved. Ads load on separate pages. We're no longer affected by broken ads.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: