How to reduce css http requests? -


How to reduce CSS HT requests?

1 large css file

or a css file which is importing all other CSS

Is this the same?

What is the benefit of using it

 @import url ('/ css / typography css'); @import url ('/ css / layout.css'); @import url ('/ css / color.css'); 

1 large css file or a css file which all import Does the other CSS have the same?

No, as the customer still needs to load every CSS file (with each one HTTP-request)

About reducing some links HTTP request to learn more in:

  • If you are using Firefox I highly recommend HTTP requests.
    Edit:
    The flyover explains as a comment: a firefox extension that integrates with firebug to analyze webbows performance

    Try 3 simple things first:

    • Combine global CSS (the things you use on every page)
    • Compress CSS (or some online tool)
    • Inline Page-Specific Accessories (Things That Are The Pages Between are not shared)

    There were many things also apply to JavaScript files.


    Comments

    Popular posts from this blog

    MySql variables and php -

    url rewriting - How to implement the returnurl like SO in PHP? -

    Which Python client library should I use for CouchdB? -