Skip to content

Commit ff45e88

Browse files
committed
fix(beasties): render rel=preload for swap strategy
1 parent d8646e6 commit ff45e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/beasties/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export default class Beasties {
312312
}
313313
else if (preloadMode === 'swap') {
314314
link.setAttribute('onload', 'this.rel=\'stylesheet\'')
315+
updateLinkToPreload = true
315316
noscriptFallback = true
316317
}
317318
else {

0 commit comments

Comments
 (0)