AletheiaFact/aletheia

Lazy load commons images and stop fetching them in SSR mode

Open

#1,103 opened on Nov 16, 2023

 (0 comments) (0 reactions) (0 assignees)TypeScript (19 forks)auto 404
good first issueperformancetech

Repository metrics

Stars
 (53 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide