aadeshkulkarni / figuringout

Blogging + Social Media + AI | Opensource | Javascript | ReactJS | HonoJS | Prisma
https://figuringout.life
MIT License
72 stars 78 forks source link

Performance improvements: code splitting, improved lighthouse score #223

Closed debopriyobasu closed 5 days ago

debopriyobasu commented 6 days ago

Performance improvements | Code splitting and lazy loading core components

This Pull Request tries to optimize the performance of the app by reducing the bundle size using code splitting and uses the existing Spinner component as a fallback till the component(page) loads. This would result is better performance as the app gets more content-heavy over time.

Description

Resolves #158

Linked Issues

Type of Change

Changes

Screenshots/Recordings

Lighthouse score before optimization:

before-optimization

Lighthouse score after optimization

after-optimization

Screenshot of dist folder after npm run build is executed

Screenshot 2024-06-27 at 5 12 24 PM

Spinner loading animation (centered) - throttled to view on low end devices or slow internet connection

page-loading-animation

Checklist before requesting a review

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medium-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2024 1:03pm
aadeshkulkarni commented 5 days ago

Nicely done. 🔥 Thank you for your contribution

debopriyobasu commented 5 days ago

Nicely done. 🔥 Thank you for your contribution

Thanks a lot for the encouragement and support ❤️