AletheiaFact/aletheia

Lazy load commons images and stop fetching them in SSR mode

Aperta

#1103 aperta il 16 nov 2023

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (19 fork)auto 404
good first issueperformancetech

Metriche repository

Star
 (53 stelle)
Metriche merge PR
 (Merge medio 4g) (12 PR mergiate in 30 g)

Descrizione

Background Information

From the new relic dashboard we identified that the personality pages have slow outliers and one thing we can do to improve is stop rendering commons images during SSR. Fetching the image takes up to 25% of the loading time, see image below. image

How

Look at the Next.js documentation for lazyloading component. The component that needs to be lazyloaded is AletheiaAvatar.tsx

Guida contributor