W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] defer on style, depends

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 09 Feb 2009 12:42:18 -0500
Message-ID: <49906AFA.804@mit.edu>
Garrett Smith wrote:
> The script's defer attribute does not work in a majority of
> implementations. For such browsers, it makes sense to put the script
> lower on the page for performance reasons, not before the linked
> stylesheets. Moving the deferred script from the bottom of the page to
> the head, just before the stylesheet would mean that those scripts
> would load first. This would prevent the page content from loading
> until those scripts had loaded. This would hurt performance in the
> majority of browsers in use today.
> 
> Putting scripts at the bottom works in all browsers. Including a
> linked stylesheet in the head causes delays.

I'm not sure why you think that adding features to browsers to work 
around bugs in those same browsers is the right approach.  Would just 
fixing "defer" for scripts fix your issue?


> Whatever.

That's a very cogent and enlightening response, I'm sure, but it seems 
to be going over my head.  Care to explain in terms someone of my 
limited mental ability can understand?

-Boris
Received on Monday, 9 February 2009 09:42:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:09 UTC