Chrome 正在试用 HTML 客户端包含

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