Skip to content

Commit

Permalink
⚡️ async image decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 21, 2021
1 parent 1bcc609 commit fd816b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/prose/img.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
src = validate(src)
</script>

<img {src} {alt} class={className ?? 'rounded-lg my-2'} loading="lazy" />
<img {src} {alt} class={className ?? 'rounded-lg my-2'} loading="lazy" decoding="async" />

0 comments on commit fd816b7

Please sign in to comment.