News for hackers. Stuff that matters.
Re:Don't wait for "DOM ready" for your app to start by crazygringo on Friday June 08, 2012 @11:35PM (#4087086)
In my experience, the main reason is any ad content you're serving. If an ad network's content times out (which I've seen happen for hours at a time, multiple times a year), your page might take 30 seconds until it fires the DOM ready.

At one company I worked at, the ad network we used got so bad that we not only executed all our JavaScript at the bottom of every page (instead of in the DOM ready), but also only loaded the ads after that, and then dynamicaly repositioned them to the "inline" spots where they supposed to appear.

Re:Don't wait for "DOM ready" for your app to start by pestaa on Saturday June 09, 2012 @06:39AM (#4087806)
I wonder if post-loading ads is allowed in most TOSes. If I were in their shoes, I would not like it.