Update LazyImage.svelte with noscript for image loading

This commit is contained in:
Bradley Shellnut 2023-11-11 16:54:31 -08:00 committed by GitHub
parent 9477435802
commit a22f35ff09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@
</script>
<div class="wrap">
<noscript><Img class={clazz} {style} {src} {alt} {loading} bind:ref on:load={() => (loaded = true)} /></noscript>
<Img class={clazz} {style} {src} {alt} {loading} bind:ref on:load={() => (loaded = true)} />
<div class="blur" class:loaded />
</div>
</div>