mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix(website): lazy-load YT iframe (#6746)
This commit is contained in:
parent
04affa60b6
commit
bb55586c20
|
|
@ -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…
Reference in New Issue