gpt4 book ai didi

html - 什么是子资源?

转载 作者:行者123 更新时间:2023-11-27 23:53:25 24 4
gpt4 key购买 nike

根据 MDN文档.readyState

Returns "loading" while the document is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.

什么具体构成了子资源?子资源是否仅限于其他 link 元素到外部资源?

(我尝试了 google 和 MDN 并没有找到 web 上下文的子资源的定义)

最佳答案

您引用的 MDN 文档摘录来自 HTML5 specification .

请注意,为了保持一致,sub-resources 一词应表述为 subresources(在原始规范和 MDN 中)。

即使 HTML5 规范中没有子资源的正式定义,该术语也会在后面以您可以理解其预期含义的方式使用。

A resource's critical subresources are those that the resource needs to have available to be correctly processed.

要回答您的问题,子资源是解析 html 后必须获取的所有内容,如脚本、样式表、图像、视频......

关于html - 什么是子资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25530967/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com