Total requests are optimized
mediumtotal_requests
Checks that the total number of HTTP requests is optimized.
What does this rule check?
Total HTTP requests include HTML, CSS, JS, images, fonts, and API calls. While HTTP/2 handles multiplexing, reducing total requests still improves performance.
Why is this important?
More requests mean more connection overhead, DNS lookups, and processing time. Each request adds latency, especially on slow networks.
How to fix
Bundle assets, use image sprites or inline SVGs, combine API calls, and defer non-critical requests.
Examples
Incorrect
<!-- 80+ HTTP requests on page load -->
Correct
<!-- 20-30 optimized HTTP requests -->
Agent fix snippet
Copy this snippet and paste it into your AI coding agent to fix this issue automatically.
Reduce total requests:
1. Bundle JS and CSS files
2. Use SVG sprites instead of individual icons
3. Lazy-load below-fold resources
4. Combine API requests where possible