Performance Optimization Strategy in 2025

Get a big picture

  • Check the state of things in CrUX
  • Check the performance panel in Chrome
  • Check what browsers we are supporting, and how

1. Clean up and reorder the <head>

  • Turn on Brotli compression
  • Preloading critical fonts <link rel="preload" as="font" crossorigin href="font.woff2">
  • Not loading fonts for users with saveData on and prefers-reduced-data on


2. Manage critical CSS and CSS loading

  • Create critical.css and non-critical.css for each template
  • Use outline: 3px solid red to check layout shifts
  • Remove all external SVGs (inlined into CSS)

3. Improve Web Font Loading