#613: Early Design Review: document.prerendering

Visit on Github.

Opened Mar 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.

Further details:

  • [:heavy_check_mark:] I have reviewed the TAG's API Design Principles
  • The group where the incubation/design work on this is being done: WICG (future)
  • The group where standardization of this work is intended to be done: WHATWG
  • Existing major pieces of multi-stakeholder review or discussion of this design:
  • Major unresolved issues with or opposition to this design: N/A
  • This work is being funded by: Google

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

Discussions

2021-03-15

Minutes

Some discussion about API shape, comments left.

Rossen has some concerns about exposing prerender state to the document

2021-05-Arakeen

Minutes

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.

2021-06-21

Minutes

Ok to close