Simon Willison’s Weblog

Items tagged domcontentloaded, unobtrusivejavascript in Sep, 2007

Filters: Year: 2007 × Month: Sep × domcontentloaded × unobtrusivejavascript ×


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

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