Bug
1758820 [wpt PR 33145] - [renderblocking] Implement render-blocking on script elements, a=testonly
Automatic update from web-platform-tests
[renderblocking] Implement render-blocking on script elements
This patch makes RenderBlockingResourceManager to accept scripts as
render-blocking resources, and implements the following parts of the
spec:
1. Right before fetching a render-blocking script, add it to
RenderBlockingResourceManager:
https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:block-rendering
2. When executing a script, remove it from RenderBlockingResourceManager
https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:unblock-rendering
3. When a render-blocking script is removed, also remove it from
RenderBlockingResourceManager, so that rendering is unblocked even
without executing the script:
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#blocking-attributes:unblock-rendering
Bug:
1271296
Change-Id: Ib5d7391668efb1a0c74a3c152e02c1b533accc43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3511116
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#979904}
--
wpt-commits:
94d8756232a4ba5d893242f3d11f7b2026fe5c0e
wpt-pr: 33145