call(back)

How Would You Make a Site Faster?

How would you make a site faster?

Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.

Hints

Hint 1

Start with "measure first" and name the tool (the Performance panel, Lighthouse, real-user metrics) before listing fixes.

Solution

Show the approach

Answer

Measure first. Then ship less: code-split, tree-shake, compress, and use modern image formats. Unblock rendering: defer scripts, inline critical CSS, and lazy-load below the fold. Cache: hashed filenames with a long max-age, and never cache the HTML. Move work: a CDN, server rendering, and parallel API calls instead of a waterfall.

Asked at