Skip to content

Commit 130fcda

Browse files
Elchi3ddbeck
andauthored
Add speculation rules (#2180)
* Add speculation rules * Update features/speculation-rules.yml Co-authored-by: Daniel D. Beck <[email protected]> --------- Co-authored-by: Daniel D. Beck <[email protected]>
1 parent ebd9f94 commit 130fcda

File tree

4 files changed

+35
-55
lines changed

4 files changed

+35
-55
lines changed

features/draft/spec/prerendering-revamped.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

features/draft/spec/prerendering-revamped.yml.dist

Lines changed: 0 additions & 40 deletions
This file was deleted.

features/draft/spec/speculation-rules.yml renamed to features/speculation-rules.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
draft_date: 2024-10-21
2-
name: Speculation Rules
3-
description: TODO
4-
spec: https://wicg.github.io/nav-speculation/speculation-rules.html
1+
name: Speculation rules
2+
description: Speculation rules are hints to the browser to proactively download pages in the background so they appear instantly when the user navigates to them.
3+
spec:
4+
- https://wicg.github.io/nav-speculation/speculation-rules.html
5+
- https://wicg.github.io/nav-speculation/prerendering.html
56
compat_features:
7+
- api.Document.prerendering
8+
- api.Document.prerenderingchange_event
9+
- api.PerformanceNavigationTiming.activationStart
610
- html.elements.script.type.speculationrules
711
- html.elements.script.type.speculationrules.eagerness
812
- html.elements.script.type.speculationrules.expects_no_vary_search
@@ -17,3 +21,6 @@ compat_features:
1721
- html.elements.script.type.speculationrules.where
1822
- http.headers.Content-Security-Policy.script-src.inline-speculation-rules
1923
- http.headers.Speculation-Rules
24+
- http.headers.Supports-Loading-Mode
25+
- http.headers.Supports-Loading-Mode.credentialed-prerender
26+
- http.headers.Supports-Loading-Mode.fenced-frames

features/draft/spec/speculation-rules.yml.dist renamed to features/speculation-rules.yml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ status:
55
baseline: false
66
support: {}
77
compat_features:
8+
# baseline: false
9+
# support:
10+
# chrome: "108"
11+
# chrome_android: "57"
12+
# edge: "108"
13+
- api.PerformanceNavigationTiming.activationStart
14+
15+
# baseline: false
16+
# support:
17+
# chrome: "108"
18+
# chrome_android: "108"
19+
# edge: "108"
20+
- api.Document.prerendering
21+
- api.Document.prerenderingchange_event
22+
823
# baseline: false
924
# support:
1025
# chrome: "109"
@@ -13,6 +28,8 @@ compat_features:
1328
- html.elements.script.type.speculationrules
1429
- html.elements.script.type.speculationrules.prerender
1530
- html.elements.script.type.speculationrules.urls
31+
- http.headers.Supports-Loading-Mode
32+
- http.headers.Supports-Loading-Mode.credentialed-prerender
1633

1734
# baseline: false
1835
# support:
@@ -36,6 +53,13 @@ compat_features:
3653
# edge: "111"
3754
- html.elements.script.type.speculationrules.referrer_policy
3855

56+
# baseline: false
57+
# support:
58+
# chrome: "117"
59+
# chrome_android: "117"
60+
# edge: "117"
61+
- http.headers.Supports-Loading-Mode.fenced-frames
62+
3963
# baseline: false
4064
# support:
4165
# chrome: "121"

0 commit comments

Comments
 (0)