Published: Written in Crawley, UK
Original post can be viewed

How to make MPAs that are as fast as SPAs — written by Chris Ferdinandi

The title implies as fast as SPAs. I’d say faster than SPAs actually.

But that’s me just being pedantic.

Here’s a quick high-level summary of what I do…

  1. Serve pre-rendered, mostly static HTML.
  2. Inline everything, including CSS and JavaScript.
  3. Use mostly platform-native JavaScript, and as little of it as possible.
  4. Minify and gzip all the things.
  5. Lean heavily on service workers.

Nice one Chris!

Other bookmarks