|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { hydrate_nodes, hydrating, set_hydrate_nodes, update_hydrate_nodes } from '../hydration.js';
|
|
|
|
|
import { hydrate_anchor, hydrate_nodes, hydrating, set_hydrate_nodes } from '../hydration.js';
|
|
|
|
|
import { empty } from '../operations.js';
|
|
|
|
|
import { render_effect } from '../../reactivity/effects.js';
|
|
|
|
|
import { remove } from '../reconciler.js';
|
|
|
|
|
@ -15,7 +15,13 @@ export function head(render_fn) {
|
|
|
|
|
|
|
|
|
|
if (hydrating) {
|
|
|
|
|
previous_hydrate_nodes = hydrate_nodes;
|
|
|
|
|
update_hydrate_nodes(document.head.firstChild);
|
|
|
|
|
|
|
|
|
|
let anchor = /** @type {import('#client').TemplateNode} */ (document.head.firstChild);
|
|
|
|
|
while (anchor.nodeType !== 8 || /** @type {Comment} */ (anchor).data !== '[') {
|
|
|
|
|
anchor = /** @type {import('#client').TemplateNode} */ (anchor.nextSibling);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
anchor = /** @type {import('#client').TemplateNode} */ (hydrate_anchor(anchor));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var anchor = document.head.appendChild(empty());
|
|
|
|
|
|