@sveltejs/kit 1.0.0-next.510 → 1.0.0-next.511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -135,7 +135,8 @@ export async function render_response({
|
|
|
135
135
|
rendered = { head: '', html: '', css: { code: '', map: null } };
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
let
|
|
138
|
+
let head = '';
|
|
139
|
+
let body = rendered.html;
|
|
139
140
|
|
|
140
141
|
const csp = new Csp(options.csp, {
|
|
141
142
|
dev: options.dev,
|
|
@@ -303,6 +304,9 @@ export async function render_response({
|
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
|
|
307
|
+
// add the content after the script/css links so the link elements are parsed first
|
|
308
|
+
head += rendered.head;
|
|
309
|
+
|
|
306
310
|
// TODO flush chunks as early as we can
|
|
307
311
|
const html =
|
|
308
312
|
(await resolve_opts.transformPageChunk({
|