AletheiaFact/aletheia

Lazy load commons images and stop fetching them in SSR mode

开放

#1,103 创建于 2023年11月16日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (19 个派生)auto 404
good first issueperformancetech

仓库指标

星标
 (53 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南