Hivekind / hivekind.com

0 stars 0 forks source link

optimize LCP elements #91

Closed parasquid closed 3 months ago

parasquid commented 3 months ago

see https://nextjs.org/docs/pages/building-your-application/optimizing/images#priority

for each page, check the top of the fold (the elements immediately showing when the page is loaded, without scrolling) and optimize the images there.

For example, they should not be lazy loaded and the priority attribute should be set.

parasquid commented 3 months ago

We should also use a placeholder image like https://github.com/vercel/next.js/blob/canary/examples/image-component/app/shimmer/page.tsx