Web performance optimization
A fast site improves user experience, SEO and conversion. Four workstreams cover most of the gains.
Where to act?
Images are often the heaviest part of a page; server and caching drive TTFB; control files guide crawlers. Each workstream directly affects Core Web Vitals. Resources: web.dev.
In this section
- ImagesOptimize web images: AVIF and WebP formats, compression, srcset/sizes/picture, lazy loading and image CDNs for better LCP and CLS.
- CachingOptimize web caching: Cache-Control, immutable, ETag, CDN cache, Service Worker (stale-while-revalidate) and an Apache mod_expires example.
- ServerTune your server for performance: Brotli/gzip compression, HTTP/2 and HTTP/3, 103 Early Hints, 301 redirects, server cache and TTFB.
- robots, sitemap, llms.txtControl files for SEO and AI: robots.txt, sitemap.xml with lastmod and hreflang, llms.txt. Best practices and examples.