Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Render Blocking #783

Open
hvanops opened this issue Oct 3, 2024 · 0 comments
Open

Document Render Blocking #783

hvanops opened this issue Oct 3, 2024 · 0 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@hvanops
Copy link

hvanops commented Oct 3, 2024

Description

This feature enables authors to block rendering of a Document until the critical content has been parsed, ensuring a consistent first paint across all browsers. Without this feature, the first paint's state depends on the heuristics for parser yielding which can vary across browsers.

This is particularly important for View Transitions, where the parsed DOM state on the first frame can drastically change the transition created.

Note that this feature specifically implements a <link rel=expect href="#id"> syntax that allows a link element to reference another expected element on the page. The rendering is then blocked until the expected element is fully parsed. This supersedes previous implementation of the html attribute that allows the whole document to be render-blocked.

Specification

https://html.spec.whatwg.org/multipage/links.html#link-type-expect

Additional Signals

Standards Positions

Tests

Additional Signals

@hvanops hvanops added the focus-area-proposal Focus Area Proposal label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

1 participant