是否有HTML中的资源包提案? [英] Is there a proposal for Resource Bundles in HTML?

查看:113
本文介绍了是否有HTML中的资源包提案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML中有资源包的提案/ RFC吗? (或者是已经有一个标准,我错过了这条船?)

资源包的概念与 PDF ,Java的 JAR ,Flash的 SWF ,Android的 APK 等;看起来WWW在这里滞后。



以下是我的非正式建议:


允许将所有页面
特定资源(images / css / blah
blah)捆绑到一个zip / gzip / bzip2文件中。

页面中常见的资源可以放入另一个
包中,比方说。每个包可以有一个
名称,并且可以使用以下这些行的URL方案来识别

resource:// resource-name / xyz $ b 当然,普通的URL也会被
支持。



顶级目录在这个包里面会有一个HTML文件,它将成为浏览器开始渲染的锚点。所有其他资源将位于子目录内。


在典型场景中,资源包应该减少单个HTTP请求的数量以及传输大小。

欢迎提供其他解决方案/黑客/建议。

,我认为这是SPDY,但我认为它实际上是这个未命名的 HTML资源包提案...



HTML资源包规范(草稿)



原始信息:



资源包 - Mozilla的Alexander Limi提出的一个创意
http://limi.net/articles/resource-packages/



有一个更容易阅读的概述这里:
http://robertnyman.com/2009/11/17/a-faster-web-with-resource-packages-mozilla-suggestion-to-have- just-one-http-request /


Is there a proposal / RFC for resource bundles in HTML? (Or is there already a standard and I have missed the boat?)

The concept of resource bundles has worked well with PDF, Java's JAR, Flash's SWF, Android's APK, etc; it seems like WWW is lagging behind here.

Here's my informal proposal:

Allow bundling of all the page specific resources (images/css/blah blah) into one zip/gzip/bzip2 file. Resources which are common across pages could be put into another bundle, say. Each bundle can have a name and resources could be identified using a URL scheme along these lines: resource://resource-name/xyz

Of course, normal URL's would be supported too.

The toplevel directory inside the bundle would have one, and only one, html file which will be the anchor point for the browser to start rendering. All other resources would be inside subdirectories.

Resource bundles should reduce the number of individual HTTP requests as well as transfer size, in typical scenarios.

Alternative solutions / hacks / proposals welcome.

解决方案

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/

这篇关于是否有HTML中的资源包提案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆