Simon Willison’s Weblog

Subscribe

4 items tagged “domcontentloaded”

2007

Native DOMContentLoaded is coming to Safari. I filed this bug over two years ago. They’ve just committed the resulting patch to trunk.

# 8th October 2007, 1:07 am / browsers, domcontentloaded, javascript, onload, safari, webkit

I have another technique [...] that I'll be switching jQuery to. If you attempt to insert into the document.body before the document is fully loaded, an exception is thrown. I take advantage of that to determine when the document is fully loaded.

John Resig

# 26th September 2007, 12:21 pm / domcontentloaded, ie, javascript, jquery, unobtrusivejavascript

IEContentLoaded. An alternative method of detecting DOMContentLoaded on IE; works by polling until the doScroll() method on an unattached element stops throwing errors.

# 24th September 2007, 12:10 pm / domcontentloaded, domscripting, hedgerwang, ie, iecontentloaded, javascript, unobtrusivejavascript

base2. Dean Edwards’ new JavaScript library which adds useful cross-browser features based on upcoming DOM standards (the Selectors API, DOMContentLoaded, addEventListener and more).

# 23rd March 2007, 5:59 pm / addeventlistener, base2, deanedwards, domcontentloaded, javascript, libraries, selectors