One CSS file vs multiple for different pages -
I have a site where all the pages have the same title and footer, but there is a difference between the content. I guess 30% of the CSS is common on all pages, 70% is different.
What are the relative advantages and disadvantages of using multiple for a CSS file for different pages?
The benefits of a CSS file
- Only one needs an HTTP request to get it, which improves the first page load time for most users and will speed up the subsequent page loads, especially if users have more than one different page type It is expected to see that this server can also reduce the load.
Advantages of Multiple CSS Files
- Reduces bandwidth, especially if there is no user during your visit There is a possibility to see many page types on your site (which is divided into almost completely unrelated sub-sites on your site) Note that multiple CSS files will increase HTTP requests, which, despite bandwidth savings, can reduce load speed on modern connections.
I'm usually in favor of placing a CSS file for a site, in most cases.
Comments
Post a Comment