Skip to content

Commit

Permalink
docs: set loading="lazy" on iframes (#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Nov 24, 2024
1 parent f752c96 commit 8ad7d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/components/Preview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{/if}
<div class="preview-viewer" class:framed>
{#if framed}
<iframe title={src.split("/").pop()} src={themedSrcUrl}></iframe>
<iframe loading="lazy" title={src.split("/").pop()} src={themedSrcUrl}></iframe>
{:else}
<slot />
{/if}
Expand Down

0 comments on commit 8ad7d59

Please sign in to comment.