Chrome 正在试用 HTML 客户端包含
1 分•作者: dfabulich•3 个月前
以声明式方式控制 HTML 片段的各个方面:
* 对其进行清理
* 从单独的 URL 加载它们(又称“客户端包含”)
* 缓冲它们而不是流式传输
这里有一份关于其工作原理的“解释性”文档:https://github.com/WICG/declarative-partial-updates/blob/main/fragment-include-explainer.md
查看原文
https://groups.google.com/a/chromium.org/g/blink-dev/c/rjBSVWAGoHo/m/FhEGrTIkAwAJ?pli=1<p>"Declaratively control various aspect of HTML fragments:"<p><pre><code> - Sanitize them
- Bring them from a separate URL (aka "client side include")
- Buffer them instead of stream
</code></pre>
There's an "explainer" doc about how it would work here: https://github.com/WICG/declarative-partial-updates/blob/main/fragment-include-explainer.md