Skip to content

Commit

Permalink
fix: don't inject script preload tags for HTML-only pages (fix #1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 25, 2023
1 parent 7bf4a34 commit e8c6494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vike/node/runtime/html/injectAssets/getHtmlTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async function getHtmlTags(
return 'HTML_BEGIN'
}
if (asset.assetType === 'script') {
if (isHtmlOnly) return false
return 'HTML_END'
}
return false
Expand Down

0 comments on commit e8c6494

Please sign in to comment.