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

Offer link preload opt-in #153

Open
twifkak opened this issue Feb 23, 2022 · 0 comments
Open

Offer link preload opt-in #153

twifkak opened this issue Feb 23, 2022 · 0 comments

Comments

@twifkak
Copy link
Collaborator

twifkak commented Feb 23, 2022

Opposite to #139, we could create a new link relation like

<link rel=sxg-preload as=... href=...>

which is converted to a Link header for SXG subresource prefetching, but not used for normal HTML. It would be registered here per the HTML spec.

Preferably, it may be possible to do this already like:

<template data-sxg-only><link rel=preload as=... href...></template>

We should verify this adds an SXG preload header but does not preload otherwise.

The PromoteLinkTagsToHeaders processor doesn't skip template contents. It probably should skip template contents except when the template is data-sxg-only.

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

No branches or pull requests

1 participant