You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,14 @@ A "reset" function is returned, which will empty the active `IntersectionObserve
126
126
Whether to switch from the default prefetching mode to the prerendering mode for the links inside the viewport.
127
127
128
128
> **Note:** The prerendering mode (when this option is set to true) will fallback to the prefetching mode if the browser does not support prerender.
129
+
> Once the element exits the viewport, the `speculationrules` script is removed from the DOM. This approach makes it possible to exceed the limit of 10 prerenders imposed for the 'immediate' and 'eager' settings for eagerness.
130
+
131
+
#### options.eagerness
132
+
133
+
- Type: `String`
134
+
- Default: `immediate`
135
+
136
+
Determines the mode to be used for prerendering specified within the speculation rules.
129
137
130
138
#### options.prerenderAndPrefetch
131
139
@@ -266,7 +274,7 @@ By default, calls to `prefetch()` are low priority.
266
274
267
275
> **Note:** This behaves identically to `listen()`'s `priority` option.
268
276
269
-
### quicklink.prerender(urls)
277
+
### quicklink.prerender(urls, eagerness)
270
278
271
279
Returns: `Promise`
272
280
@@ -281,6 +289,13 @@ One or many URLs to be prerendered.
281
289
282
290
> **Note:** Speculative Rules API supports same-site cross origin Prerendering with [opt-in header](https://bit.ly/ss-cross-origin-pre).
283
291
292
+
#### eagerness
293
+
294
+
- Type: `String`
295
+
- Default: `immediate`
296
+
297
+
Determines the mode to be used for prerendering specified within the speculation rules.
0 commit comments