I was thinking today, as I linked a webpage to 3 external .css files:
“This is too many HTTP requests!” I got to wondering if I should be using
php to combine these files into one? Or should I just import all three into the
<head> with <style> tags? I found one relevant link on the interwebs:
Suture CSS or JavaScript Files to Reduce HTTP Requests but I don’t think it gives an adequate discussion.
note: I am tagging this for javascript as well because I believe it also applies to .js files so please make note if your answer applies to only css or javascript
I think it’s not necessary. The browser will download both files just once. If you add them to the style tag on the page, it will have to download the same content everytime this page is loaded.
Unless your page/site has lots of access per second, you won’t need it.
That’s what I think…