Page size is within limits

medium

page_size

Checks that total page size is within limits.

What does this rule check?

Total page size includes HTML, CSS, JavaScript, images, and all other resources. Large pages take longer to download, especially on mobile networks. The recommended total size is under 3MB.

Why is this important?

Large pages result in slow load times, especially on mobile. This hurts user experience, increases bounce rate, and negatively affects Core Web Vitals scores.

How to fix

Compress images, minify CSS/JS, enable gzip/brotli compression, lazy-load below-fold resources, and remove unused code.

Examples

Incorrect
<!-- 8MB total page size with uncompressed images -->
Correct
<!-- 1.5MB total page size with optimized assets -->

Agent fix snippet

Copy this snippet and paste it into your AI coding agent to fix this issue automatically.

Reduce page size:
1. Compress/resize images (use WebP)
2. Minify CSS and JavaScript
3. Enable Gzip/Brotli compression
4. Lazy-load below-fold images
5. Remove unused CSS/JS