TLDR Web Dev · ARTICLES & TUTORIALS

OPTIMIZING SPA LOAD TIMES WITH ASYNC CHUNKS PRELOADING

mmazzarolo.com8 min read

Summary from the TLDR Web Dev newsletter

You can speed up client-side rendered apps by preloading the necessary page chunks before they're needed, avoiding delays caused by lazy loading. By injecting a small script during the build process, you can make sure that route-specific chunks load in parallel with the app's entry point.