From bb55586c20a3477e04cedcc6b50bddadfac10431 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Wed, 30 Mar 2022 22:50:16 +0800 Subject: [PATCH] fix(website): lazy-load YT iframe (#6746) --- website/src/pages/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 6bc84ed126..77bb463764 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -171,6 +171,7 @@ function VideoContainer() { frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen + loading="lazy" /> @@ -196,6 +197,7 @@ function Feature({ width={feature.image.width} height={feature.image.height} src={withBaseUrl(feature.image.src)} + loading="lazy" />

{feature.title}

{feature.text}