Help and documentation
Speed Medium impact Medium 30–60 min
Number of HTTP requests
Many files = many requests = a slower start.
What it is
Every file (CSS, JS, image, font) is a separate HTTP request. A large number of small requests increases overhead, especially on a slower connection.
Why it matters
Many requests mean more connection setup and overhead. On HTTP/2/3 it's less painful, but combining and removing redundancy still helps.
How to do it
- 1Combine tiny CSS/JS files (a build bundler).
- 2Use CSS sprites or inline SVG for small icons.
- 3Remove unused libraries and external scripts.
- 4Switch to HTTP/2 or HTTP/3, which handle parallel requests better.
Conclusion
Fewer, larger files usually beat many small ones. Combine what you can, remove redundancies, and enable HTTP/2+. Together with compression and caching, this forms the basis of fast delivery.
Related topics