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

Relegate document.loadingMode to a potential future #15

Merged
merged 2 commits into from
Dec 8, 2020
Merged

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Dec 8, 2020

For now, the prerendering state API and other existing APIs should suffice. Related to #2.

@bokand, your review would be appreciated!

For now, the prerendering state API and other existing APIs should suffice. Related to #2.
Copy link
Collaborator

@bokand bokand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion but LGTM!

if (document.visibilityState === "visible") {
videoElement.play();
function afterPrerendering() {
// grab user data from cookies/IndexedDB
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and requesting notifications access seems better covered by the storage and permissions APIs above. More relevant to prerendering could be "start a video/animation", "fetch large resources", "connect to chat server", etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call; leftover from some copy and pasting!

@jeremyroman
Copy link
Collaborator

lgtm2

@domenic domenic merged commit 2c60643 into main Dec 8, 2020
@domenic domenic deleted the reduce-api branch December 8, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants