- From: Ian Hickson <ian@hixie.ch>
- Date: Mon, 9 Feb 2009 05:20:17 +0000 (UTC)
On Sun, 8 Feb 2009, Garrett Smith wrote: > > Sometimes a document's resources are not needed all at first. For > example, a script that is not needed until after the document is parsed > can be given the defer attribute (for browsers that support defer). > > External css can also be a blocking download. Scripts have defer > attribute, but style and link do not. > > The proposal is to add to defer to style, and link. > > This will allow browsers to not block on those elements. Browsers are already allowed to not block on those elements. > It would be more complete to have a depends attribute on script and style. > > <script depends="a b c"></script> > > Where the depends is id-list [CS], space separated values of element IDs. Why can't you just put the <script> element below the elements whose IDs you would have listed? > It would also be useful to have a way to dynamically load scripts, other > than createElement("script"). This seems like a request for the ECMAScript group. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 8 February 2009 21:20:17 UTC