Skip to content

Commit 26a1dfa

Browse files
committed
chore: add comment for is_static_element
1 parent cee58e9 commit 26a1dfa

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+2
-0
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function is_static_element(node) {
150150
return false;
151151
}
152152

153+
// an img with loading lazy is not static but needs the `img` to be
154+
// generated to be passed to `handle_lazy_img`
153155
if (node.name === 'img' && attribute.name === 'loading') {
154156
return false;
155157
}

0 commit comments

Comments
 (0)