<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: domcontentloaded</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/domcontentloaded.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2007-10-08T01:07:01+00:00</updated><author><name>Simon Willison</name></author><entry><title>Native DOMContentLoaded is coming to Safari</title><link href="https://simonwillison.net/2007/Oct/8/bug/#atom-tag" rel="alternate"/><published>2007-10-08T01:07:01+00:00</published><updated>2007-10-08T01:07:01+00:00</updated><id>https://simonwillison.net/2007/Oct/8/bug/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://bugs.webkit.org/show_bug.cgi?id=5122"&gt;Native DOMContentLoaded is coming to Safari&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
I filed this bug over two years ago. They’ve just committed the resulting patch to trunk.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/browsers"&gt;browsers&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/domcontentloaded"&gt;domcontentloaded&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/onload"&gt;onload&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/safari"&gt;safari&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/webkit"&gt;webkit&lt;/a&gt;&lt;/p&gt;



</summary><category term="browsers"/><category term="domcontentloaded"/><category term="javascript"/><category term="onload"/><category term="safari"/><category term="webkit"/></entry><entry><title>Quoting John Resig</title><link href="https://simonwillison.net/2007/Sep/26/john/#atom-tag" rel="alternate"/><published>2007-09-26T12:21:07+00:00</published><updated>2007-09-26T12:21:07+00:00</updated><id>https://simonwillison.net/2007/Sep/26/john/#atom-tag</id><summary type="html">
    &lt;blockquote cite="http://groups.google.com/group/jquery-dev/browse_thread/thread/517dd87b61515162"&gt;&lt;p&gt;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.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p class="cite"&gt;&amp;mdash; &lt;a href="http://groups.google.com/group/jquery-dev/browse_thread/thread/517dd87b61515162"&gt;John Resig&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/domcontentloaded"&gt;domcontentloaded&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/internet-explorer"&gt;internet-explorer&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/jquery"&gt;jquery&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/unobtrusive-javascript"&gt;unobtrusive-javascript&lt;/a&gt;&lt;/p&gt;



</summary><category term="domcontentloaded"/><category term="internet-explorer"/><category term="javascript"/><category term="jquery"/><category term="unobtrusive-javascript"/></entry><entry><title>IEContentLoaded</title><link href="https://simonwillison.net/2007/Sep/24/iecontentloaded/#atom-tag" rel="alternate"/><published>2007-09-24T12:10:02+00:00</published><updated>2007-09-24T12:10:02+00:00</updated><id>https://simonwillison.net/2007/Sep/24/iecontentloaded/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.hedgerwow.com/360/dhtml/ie-dom-ondocumentready.html"&gt;IEContentLoaded&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
An alternative method of detecting DOMContentLoaded on IE; works by polling until the doScroll() method on an unattached element stops throwing errors.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/domcontentloaded"&gt;domcontentloaded&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/dom-scripting"&gt;dom-scripting&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/hedger-wang"&gt;hedger-wang&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/iecontentloaded"&gt;iecontentloaded&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/internet-explorer"&gt;internet-explorer&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/unobtrusive-javascript"&gt;unobtrusive-javascript&lt;/a&gt;&lt;/p&gt;



</summary><category term="domcontentloaded"/><category term="dom-scripting"/><category term="hedger-wang"/><category term="iecontentloaded"/><category term="internet-explorer"/><category term="javascript"/><category term="unobtrusive-javascript"/></entry><entry><title>base2</title><link href="https://simonwillison.net/2007/Mar/23/edwards/#atom-tag" rel="alternate"/><published>2007-03-23T17:59:34+00:00</published><updated>2007-03-23T17:59:34+00:00</updated><id>https://simonwillison.net/2007/Mar/23/edwards/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://dean.edwards.name/weblog/2007/03/yet-another/"&gt;base2&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Dean Edwards’ new JavaScript library which adds useful cross-browser features based on upcoming DOM standards (the Selectors API, DOMContentLoaded, addEventListener and more).


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/addeventlistener"&gt;addeventlistener&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/base2"&gt;base2&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/dean-edwards"&gt;dean-edwards&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/domcontentloaded"&gt;domcontentloaded&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/libraries"&gt;libraries&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/selectors"&gt;selectors&lt;/a&gt;&lt;/p&gt;



</summary><category term="addeventlistener"/><category term="base2"/><category term="dean-edwards"/><category term="domcontentloaded"/><category term="javascript"/><category term="libraries"/><category term="selectors"/></entry></feed>