mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs: set loading="lazy"
on iframes (#2062)
This commit is contained in:
parent
f752c96daf
commit
8ad7d5967e
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue