[Webkit-unassigned] [Bug 20710] WebKit should support defer and async on script elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 19 14:48:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=20710





--- Comment #14 from Tony Gentilcore <tonyg at chromium.org>  2010-05-19 14:48:04 PST ---
Brian, you were right. Async should not block DOMContentLoaded. Here's the relevant part of the spec:
http://dev.w3.org/html5/spec/Overview.html#delay-the-load-event

As further validation, I've compiled this table lists the behavior of current browsers and specs as it related to async/defer.

           defer inl.  defer ext.  async  block DCL   block load
           ----------  ----------  -----  ----------  ----------
HTML4 spec      Y          Y         N      undef       undef
HTML5 spec      N          Y         Y    only defer      Y
IE 8            Y          Y         N       N/A          Y
Opera 10.5      N          N         N       N/A         N/A
Firefox 3.6     N          Y         Y        N           Y
Curr WebKit     N          N         N       N/A         N/A
New WebKit      N          Y         Y    only defer      Y

This patch matches the HTML5 spec and only differs from FF3.6 in that we block DCL for defer. So we shouldn't have any web compat problems that aren't in FF3.6.

I've updated the patch as describe above (and it should also now fix the gtk/qt builds).

To reviewer: I could break defer and async into separate patches if you prefer, but I thought it important to see the whole thing first.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list