File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
packages/svelte/src/internal/client/dom/blocks Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,10 @@ export function head(render_fn) {
33
33
head_anchor = /** @type {import('#client').TemplateNode } */ ( document . head . firstChild ) ;
34
34
}
35
35
36
- var depth = 0 ;
37
-
38
- while ( head_anchor !== null ) {
39
- if ( head_anchor . nodeType === 8 ) {
40
- var data = /** @type {Comment } */ ( head_anchor ) . data ;
41
- if ( data === HYDRATION_START ) {
42
- if ( depth === 0 ) {
43
- break ;
44
- }
45
- depth ++ ;
46
- }
47
- if ( data === HYDRATION_END ) {
48
- depth -- ;
49
- }
50
- }
36
+ while (
37
+ head_anchor . nodeType !== 8 ||
38
+ /** @type {Comment } */ ( head_anchor ) . data !== HYDRATION_START
39
+ ) {
51
40
head_anchor = /** @type {import('#client').TemplateNode } */ ( head_anchor . nextSibling ) ;
52
41
}
53
42
You can’t perform that action at this time.
0 commit comments