#613: Early Design Review: document.prerendering
Discussions
2021-03-15
Some discussion about API shape, comments left.
Rossen has some concerns about exposing prerender state to the document
2021-05-Arakeen
Rossen and Tess went spelunking in the explainer and several other documents it links to. This feature is very hard to evaluate on its own given that it depends on a bunch of other stuff that we've not seen before / that hasn't landed in the platform or been brought to us for review.
Tess left a comment & marked it as propose close
.
OpenedMar 1, 2021
HIQaH! QaH! TAG!
I'm requesting a TAG review of
document.prerendering
.We propose introducing a boolean property
document.prerendering
and associated change event to distinguish prerendering browsing contexts from regular ones for next-generation prerendering on the web, described more broadly at https://github.com/jeremyroman/alternate-loading-modes.document.prerendering
and related concepts are specified in "Prerendering browsing context infrastructure" section)Further details:
You should also know that...
This is a small piece of a large effort to bring back prerendering in a more predictable and standardized way. The entirety of the prerendering feature is a very large body of work so we thought it be good to separate out parts of it, where it makes sense, for ease of review. This feature would only ship as part of a larger launch of a new prerendering mode.
Also, old versions of prerendering used a special value of the
document.visibilityState
API for this purpose, but it has since been unshipped and removed from the spec. We've considered whether to bring that back but believe it had some shortcomings (noted in https://github.com/w3c/page-visibility/issues/59) and would be better addressed by an API not tied to visibility.We'd prefer the TAG provide feedback as:
💬 leave review feedback as a comment in this issue and @-notify @bokand