Skip to content

Commit c9572e9

Browse files
committed
fix(nuxt): do not add manifest preload when noScripts
1 parent ecae2cd commit c9572e9

File tree

1 file changed

+1
-1
lines changed
  • packages/nuxt/src/core/runtime/nitro/handlers

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/runtime/nitro/handlers/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default defineRenderHandler(async (event): Promise<Partial<RenderResponse
185185
}, headEntryOptions)
186186
}
187187

188-
if (isAppManifestEnabled && ssrContext._preloadManifest) {
188+
if (isAppManifestEnabled && ssrContext._preloadManifest && !NO_SCRIPTS) {
189189
ssrContext.head.push({
190190
link: [
191191
{ rel: 'preload', as: 'fetch', fetchpriority: 'low', crossorigin: 'anonymous', href: buildAssetsURL(`builds/meta/${ssrContext.runtimeConfig.app.buildId}.json`) },

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy