Skip to content

Commit

Permalink
docs: add loading="lazy" to iframes (#3099)
Browse files Browse the repository at this point in the history
* docs: loading=lazy on iframe

* Update apps/docs/components/components/content/Generate.vue

Co-authored-by: Jakub Freisler <[email protected]>

---------

Co-authored-by: Jakub Freisler <[email protected]>
  • Loading branch information
mattmaribojoc and FRSgit authored Apr 11, 2024
1 parent ef13982 commit 96b1d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/components/components/content/Generate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="custom-block">
<iframe ref="iframeRef" :src="exampleUrl" class="generate w-full h-full border"></iframe>
<iframe ref="iframeRef" :src="exampleUrl" class="generate w-full h-full border" loading="lazy" />
</div>
</template>

Expand Down

0 comments on commit 96b1d5d

Please sign in to comment.