mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 10:48:05 +02:00
fix(website): lazy-load YT iframe (#6746)
This commit is contained in:
parent
04affa60b6
commit
bb55586c20
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,7 @@ function VideoContainer() {
|
|||
frameBorder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -196,6 +197,7 @@ function Feature({
|
|||
width={feature.image.width}
|
||||
height={feature.image.height}
|
||||
src={withBaseUrl(feature.image.src)}
|
||||
loading="lazy"
|
||||
/>
|
||||
<h3 className={clsx(styles.featureHeading)}>{feature.title}</h3>
|
||||
<p className="padding-horiz--md">{feature.text}</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue