GoogleChromeLabs / GoogleChromeLabs/quicklink

Add speculative prerendering for arbitrary URL patterns

Open
#427 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.3k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

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](https://developer.chrome.com/docs/web-platform/prerender-pages#eagerness), for example:

```html

{
"prerender": [{
"where": {
"href_matches": "/*"
},
"eagerness": "moderate"
}]
}

```

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](https://wordpress.org/plugins/speculation-rules/) WordPress plugin, quicklink could default to `moderate` eagerness.

cc @tunetheweb @gilbertococchi

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.