Skip to content

Commit 9313333

Browse files
authored
Merge branch 'main' into xmr/site-2
2 parents 3910b1b + 089ae02 commit 9313333

File tree

9 files changed

+511
-453
lines changed

9 files changed

+511
-453
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = {
3939
},
4040
],
4141
'no-negated-condition': 'warn',
42+
'no-const-assign': 'error',
4243
'prefer-destructuring': [
4344
'off',
4445
{

.size-limit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"path": "dist/quicklink.umd.js",
19-
"limit": "2.5 kB",
19+
"limit": "2.51 kB",
2020
"gzip": true
2121
}
2222
]

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ A "reset" function is returned, which will empty the active `IntersectionObserve
126126
Whether to switch from the default prefetching mode to the prerendering mode for the links inside the viewport.
127127

128128
> **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.
129137

130138
#### options.prerenderAndPrefetch
131139

@@ -266,7 +274,7 @@ By default, calls to `prefetch()` are low priority.
266274

267275
> **Note:** This behaves identically to `listen()`'s `priority` option.
268276
269-
### quicklink.prerender(urls)
277+
### quicklink.prerender(urls, eagerness)
270278

271279
Returns: `Promise`
272280

@@ -281,6 +289,13 @@ One or many URLs to be prerendered.
281289

282290
> **Note:** Speculative Rules API supports same-site cross origin Prerendering with [opt-in header](https://bit.ly/ss-cross-origin-pre).
283291
292+
#### eagerness
293+
294+
- Type: `String`
295+
- Default: `immediate`
296+
297+
Determines the mode to be used for prerendering specified within the speculation rules.
298+
284299
## Polyfills
285300

286301
`quicklink`:

package-lock.json

Lines changed: 272 additions & 282 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
}
6161
},
6262
"devDependencies": {
63-
"@babel/cli": "^7.27.2",
64-
"@babel/core": "^7.27.4",
65-
"@babel/preset-env": "^7.27.2",
63+
"@babel/cli": "^7.28.0",
64+
"@babel/core": "^7.28.0",
65+
"@babel/preset-env": "^7.28.0",
6666
"@babel/preset-react": "^7.27.1",
6767
"@size-limit/file": "^11.2.0",
6868
"conventional-changelog-cli": "^5.0.0",
@@ -72,7 +72,7 @@
7272
"eslint-plugin-react": "^7.37.5",
7373
"microbundle": "^0.15.1",
7474
"npm-run-all2": "^8.0.4",
75-
"puppeteer": "^24.10.0",
75+
"puppeteer": "^24.11.2",
7676
"react": "^19.1.0",
7777
"react-dom": "^19.1.0",
7878
"sirv-cli": "^3.0.1",

0 commit comments

Comments
 (0)