Skip to content

Conversation

@tunetheweb
Copy link
Contributor

@tunetheweb tunetheweb commented May 24, 2025

Summary

Chrome 138 will add two new features for Speculation Rules:

This will probably be picked up by BCD collector soon, but there's a note I want to add to target_hint, and I have the docs in mdn/content#39652 so thought I'd go ahead and raise this.

Test results and supporting details

target_hint: https://prerender-demos.glitch.me/target-hint.html
https://wpt.fyi/results/speculation-rules/prerender?label=experimental&label=master&aligned

clear-site-data:
https://wpt.fyi/results/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.tentative.https.html?label=experimental&label=master&aligned
https://wpt.fyi/results/speculation-rules/prerender/cancel-prerendering-after-clear-site-data-cache-different-origins.tentative.https.html?label=experimental&label=master&aligned
https://wpt.fyi/results/speculation-rules/prerender/cancel-prerendering-after-clear-site-data-cache-same-origin.tentative.https.html?label=experimental&label=master&aligned

(note some of the clear-site-data WPT tests are a little flakey so may show it as not passing - we're working on it!)

target_hint

Chrome Status link: https://chromestatus.com/feature/5162540351094784
Explainer link: https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints

Clear-site-data

Chrome Status link: https://chromestatus.com/feature/4755745652080640
Explainer link: https://github.com/WICG/nav-speculation/blob/main/clear-site-data-integration.md

Related issues

See content PR here: mdn/content#39652

@github-actions github-actions bot added data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML labels May 24, 2025
@github-actions github-actions bot added the size:l [PR only] 101-1000 LoC changed label May 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner changed the title Add speculation-rules target_hint and clear-site-data support Chrome 138 adds speculation rules target_hint and Clear-Site-Data: {prefetchCache,prerenderCache} May 27, 2025
@caugner caugner merged commit 4486272 into mdn:main May 27, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants