mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 09:55:53 +00:00
fix(nuxt): swap preloads for json/js payloads (#20375)
This commit is contained in:
parent
fe441a1364
commit
4ab4ac13df
@ -287,8 +287,8 @@ export default defineRenderHandler(async (event) => {
|
|||||||
head: normalizeChunks([
|
head: normalizeChunks([
|
||||||
renderedMeta.headTags,
|
renderedMeta.headTags,
|
||||||
process.env.NUXT_JSON_PAYLOADS
|
process.env.NUXT_JSON_PAYLOADS
|
||||||
? _PAYLOAD_EXTRACTION ? `<link rel="modulepreload" href="${payloadURL}">` : null
|
? _PAYLOAD_EXTRACTION ? `<link rel="preload" as="fetch" crossorigin="anonymous" href="${payloadURL}">` : null
|
||||||
: _PAYLOAD_EXTRACTION ? `<link rel="preload" as="fetch" crossorigin="anonymous" href="${payloadURL}">` : null,
|
: _PAYLOAD_EXTRACTION ? `<link rel="modulepreload" href="${payloadURL}">` : null,
|
||||||
NO_SCRIPTS ? null : _rendered.renderResourceHints(),
|
NO_SCRIPTS ? null : _rendered.renderResourceHints(),
|
||||||
_rendered.renderStyles(),
|
_rendered.renderStyles(),
|
||||||
inlinedStyles,
|
inlinedStyles,
|
||||||
|
Loading…
Reference in New Issue
Block a user