Docs

Optimization

A Pro option on the deploy screen that slims your page before it leaves your browser.


The Optimize pass runs entirely in your browser before upload:

  • squashes HTML and CSS
  • re-compresses images - they keep their original format and filename, so nothing else in your page needs to change

AI-generated pages can be wordy, and AI images can be heavy. This optimization can trim meaningful size, especially from images. The confirmation screen shows the result of what was saved. Faster loads, and more headroom under provider size limits.

When it matters

  • A deploy fails with a size error - “That site is too large to deploy” usually means heavy images; Optimize is the first thing to try. (More fixes: Troubleshooting.)
  • Slow first load - re-compressed images are most of the win on image heavy pages.
  • Free-tier bandwidth - a lighter page stretches allowances like Netlify’s monthly credit further.