Skip to content

Commit 36cc199

Browse files
committed
golf: inline options.priority default;
- 687 gz / 561 br
1 parent 189984a commit 36cc199

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/index.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ function prefetcher(url) {
5454
export default function (options) {
5555
options = Object.assign({
5656
timeout: 2e3,
57-
priority: false,
5857
timeoutFn: requestIdleCallback,
5958
el: document,
6059
}, options);
6160

62-
observer.priority = options.priority;
61+
observer.priority = !!options.priority;
6362

6463
options.timeoutFn(() => {
6564
// If URLs are given, prefetch them.

0 commit comments

Comments
 (0)