Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fast Loading Your React Apps : Where to start?

Fast Loading Your React Apps : Where to start?

Punit Sethi

March 09, 2019
Tweet

More Decks by Punit Sethi

Other Decks in Programming

Transcript

  1. About • Past : Performance Engineer for a decade -

    various parts of tech stack. • Current : Consulting Performance Engineer primarily focussed on Frontend Performance
  2. Know Your Top Entry Routes - Loading initial routes is

    the slowest. - Amount of JS that loads @ entry routes. - Not just vendor.js / main.js / app.js but total JS (Why? Addy says so.)
  3. Get a Devtools View of Things - Devtools -> Network

    tab gives a fair idea of biggest time consumers (Here’s how) - If your app users are mostly mobile, look at the Devtools of your site loaded on actual mobile. (Here’s how)
  4. Zoom in With Webpack Bundle Analyzer - Know the biggest

    contributors to your JS chunks that load at entry routes. - Question - If these need to be loaded? - If these can be loaded later? - Start leveraging the sea of optimizations.