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

Add speculative prerendering for arbitrary URL patterns #427

Open
rviscomi opened this issue Jun 3, 2024 · 0 comments
Open

Add speculative prerendering for arbitrary URL patterns #427

rviscomi opened this issue Jun 3, 2024 · 0 comments

Comments

@rviscomi
Copy link

rviscomi commented Jun 3, 2024

The current implementation of the Speculation Rules API uses the older input list of URLs. Since then, the API has added the ability to speculatively prerender or prefetch patterns of URLs at a specified eagerness level, for example:

<script type="speculationrules">
{
  "prerender": [{
    "where": {
      "href_matches": "/*"
    },
    "eagerness": "moderate"
  }]
}
</script>

This is a FR to update the quicklink implementation to utilize the eagerness setting, which should add more flexibility to the way sites can prerender content. Inputs could be an allowlist or blocklist of URL patterns and the eagerness. The default eagerness is conservative but similar to the Speculative Loading WordPress plugin, quicklink could default to moderate eagerness.

cc @tunetheweb @gilbertococchi

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