Is it true that fewer HTTP requests result in better performance?
According to Google's best practice guidelines, reducing the number of unused CSS rules also improves performance.
- The browser's CSS engine must assess each rule in the file to determine if it applies to the current page.
- Even when a stylesheet is cached in an external file, rendering is delayed until the browser fetches the stylesheet from disk.
Which approach do you believe yields better performance:
- Using one CSS file per page.
- Utilizing a single general CSS file that can be cached (even with over 70% unused CSS, but eliminating additional HTTP requests).