Skip to content

Commit

Permalink
Update instantpage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtextrem committed Jul 26, 2021
1 parent 2cd759c commit 3e0ee24
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions instantpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,9 @@
head.appendChild(fetcher)
}

try {
fetcher.rel = 'preload'
fetcher.as = 'document'
fetcher.href = url
} catch (e) {
fetcher.as = 'fetch' // Safari doesn't support `document`
}
fetcher.rel = 'preload'
fetcher.as = 'fetch' // Safari doesn't support `document`
fetcher.href = url
}

function stopPreloading() {
Expand Down

0 comments on commit 3e0ee24

Please sign in to comment.