[whatwg] HTML resource packages
Tab Atkins Jr.
jackalmage at gmail.com
Fri Aug 6 09:47:58 PDT 2010
On Fri, Aug 6, 2010 at 12:46 AM, Christoph Päper
<christoph.paeper at crissov.de> wrote:
> Justin Lebar:
>> Christoph Päper <christoph.paeper at crissov.de> wrote:
>>> Why do you want to put this on the HTML level (exclusively), not the HTTP level?
>> If you reference an image from a CSS file and include that CSS file in an HTML file which uses resource packages, the image can be loaded from the resource package.
> Yeah, it’s still wrong.
> Resource packages in HTML seem okay for the image gallery use case (and then could be done with ‘link’), but they’re commonly inappropriate for anything referenced from ‘link’, ‘script’ and ‘style’ elements. Your remark on loading order just proves this point: you want resource packages referenced before ‘head’. You should move one step further than the root element, i.e. to the transport layer.
This doesn't seem to make sense. If you want resource packages
referenced before <head>, then the nearest appropriate location is
still <html>. Moving it up to the transport layer isn't *wrong*, but
it's not *necessary* in this case.
More information about the whatwg