Skip to content

Commit

Permalink
Add speculation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 committed Nov 7, 2024
1 parent 2e6f2e7 commit 770fd87
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 55 deletions.
11 changes: 0 additions & 11 deletions features/draft/spec/prerendering-revamped.yml

This file was deleted.

40 changes: 0 additions & 40 deletions features/draft/spec/prerendering-revamped.yml.dist

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
draft_date: 2024-10-21
name: Speculation Rules
description: TODO
spec: https://wicg.github.io/nav-speculation/speculation-rules.html
name: Speculation rules
description: Speculation rules are hints to the browser which pages to proactively download in the background so it can be instantly displayed to the user when they navigate to it.
spec:
- https://wicg.github.io/nav-speculation/speculation-rules.html
- https://wicg.github.io/nav-speculation/prerendering.html
compat_features:
- api.Document.prerendering
- api.Document.prerenderingchange_event
- api.PerformanceNavigationTiming.activationStart
- html.elements.script.type.speculationrules
- html.elements.script.type.speculationrules.eagerness
- html.elements.script.type.speculationrules.expects_no_vary_search
Expand All @@ -17,3 +21,6 @@ compat_features:
- html.elements.script.type.speculationrules.where
- http.headers.Content-Security-Policy.script-src.inline-speculation-rules
- http.headers.Speculation-Rules
- http.headers.Supports-Loading-Mode
- http.headers.Supports-Loading-Mode.credentialed-prerender
- http.headers.Supports-Loading-Mode.fenced-frames
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ status:
baseline: false
support: {}
compat_features:
# baseline: false
# support:
# chrome: "108"
# chrome_android: "57"
# edge: "108"
- api.PerformanceNavigationTiming.activationStart

# baseline: false
# support:
# chrome: "108"
# chrome_android: "108"
# edge: "108"
- api.Document.prerendering
- api.Document.prerenderingchange_event

# baseline: false
# support:
# chrome: "109"
Expand All @@ -13,6 +28,8 @@ compat_features:
- html.elements.script.type.speculationrules
- html.elements.script.type.speculationrules.prerender
- html.elements.script.type.speculationrules.urls
- http.headers.Supports-Loading-Mode
- http.headers.Supports-Loading-Mode.credentialed-prerender

# baseline: false
# support:
Expand All @@ -36,6 +53,13 @@ compat_features:
# edge: "111"
- html.elements.script.type.speculationrules.referrer_policy

# baseline: false
# support:
# chrome: "117"
# chrome_android: "117"
# edge: "117"
- http.headers.Supports-Loading-Mode.fenced-frames

# baseline: false
# support:
# chrome: "121"
Expand Down

0 comments on commit 770fd87

Please sign in to comment.