Skip to content

Commit

Permalink
even more minification
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey committed Nov 1, 2022
1 parent 31f1839 commit 3ad1d62
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function initPreactIslandElement() {

var s,
e,
c = document.createNodeIterator(document, NodeFilter.SHOW_COMMENT);
c = document.createNodeIterator(document, 128);
while (c.nextNode()) {
let n = c.referenceNode;
if (n.data == 'preact-island:' + i) s = n;
Expand All @@ -26,9 +26,8 @@ function initPreactIslandElement() {
e.parentNode.removeChild(p);
p = e.previousSibling;
}
while (d.firstChild) {
e.parentNode.insertBefore(d.firstChild, e);
}
while (d.firstChild) e.parentNode.insertBefore(d.firstChild, e);

d.parentNode.removeChild(d);
}
}
Expand Down

0 comments on commit 3ad1d62

Please sign in to comment.