We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
options.priority
1 parent 189984a commit 36cc199Copy full SHA for 36cc199
1 file changed
src/index.mjs
@@ -54,12 +54,11 @@ function prefetcher(url) {
54
export default function (options) {
55
options = Object.assign({
56
timeout: 2e3,
57
- priority: false,
58
timeoutFn: requestIdleCallback,
59
el: document,
60
}, options);
61
62
- observer.priority = options.priority;
+ observer.priority = !!options.priority;
63
64
options.timeoutFn(() => {
65
// If URLs are given, prefetch them.
0 commit comments