Skip to content

Commit

Permalink
fix(website): lazy-load YT iframe (#6746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Mar 30, 2022
1 parent 04affa6 commit bb55586
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function VideoContainer() {
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
loading="lazy"
/>
</div>
</div>
Expand All @@ -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>
Expand Down

0 comments on commit bb55586

Please sign in to comment.