Closed
Description
Describe the problem
When prerendering, if we encounter a redirect it gets baked out as an HTML file with a <meta>
refresh tag:
kit/packages/kit/src/core/postbuild/prerender.js
Lines 341 to 344 in bc70b4e
Turns out (h/t @cramforce) it's actually quicker to use a <script>
:
<script>onload=() => location.href = "${url}"</script>
(Do we even need the onload
? Would it be quicker still without it?)
Describe the proposed solution
Do both — <script>
for speed, <meta>
for reliability.
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
Metadata
Metadata
Labels
No labels