Is there a proposal for Resource Bundles in HTML?

≯℡__Kan透↙ 提交于 2019-12-04 17:44:07

Hmm, I thought this was SPDY, but I think it was actually this "un-named" HTML Resource Packages proposal...

HTML Resource Packages Specification (draft)

Original info:

Resource packages - an idea proposed by Alexander Limi of Mozilla http://limi.net/articles/resource-packages/

There's a slightly easier to read overview here: http://robertnyman.com/2009/11/17/a-faster-web-with-resource-packages-mozilla-suggestion-to-have-just-one-http-request/

The closest thing to an existing standard for HTML resource bundles that comes to my mind is CSS. Have you considered using style sheets?

My view is that the current web architecture prefers to not bundle resources, to maintain individual resources behind individual URLs. The browser can load these individually, which may or may not be a good thing, depending on your point of view. You can of course still group them, for example under different relative URLs.

Some use XMLHttpRequest or an equivalent to load data that can be used like a bundle, for example translation catalogs. Such catalogs, like bundles, map names to values. For images, just use image URLs as the values.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!