javascript - Should I combine .css files with php to reduce http requests? -
I was thinking today, as I have 3 web pages out of 3. CSS files are added: "These are too many HTTP requests!" I wonder if I should use php to combine these files into one? Or do I just send three to & lt; Head & gt;
with
& lt; Style & gt; Import into tag? I have found a relevant link on the interwabus: But I do not think it gives enough discussion.
Note: I am also tagging this for Javascript because I believe this also applies to .js files, please note that your answer only applies to CSS or Javascript
I think this is not necessary. The browser will download both files only once. If you add them to the style tag on the page, then it will have to download the same content that is loaded on this page.
Unless you have access to a lot of pages per page / site, you will not need it.
That's what I think ...
Comments
Post a Comment