Tirraa / dashboard_rtm

dashboard_rtm
MIT License
5 stars 1 forks source link

[Perf][Blog] Lazy loading #42

Closed gustaveWPM closed 11 months ago

gustaveWPM commented 11 months ago

The bundle size of the /[categ]/[subcateg]/[slug] route is too big. This is because it is shipped with ALL the blog posts.

Maybe I could improve it with subcategories lazy loading (without breaking the static generation).

gustaveWPM commented 11 months ago

Before:

├ ● /[locale]/[categ]/[subcateg]/[slug] 11.3 kB 133 kB

Now:

├ ● /[locale]/[categ]/[subcateg]/[slug] 6.36 kB 129 kB

Fixed in: https://github.com/Tirraa/dashboard_rtm/commit/fbb1de30f571c8f6cac765ad12f556c3ee6943d4