Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9184301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:00:49+00:00 2026-06-17T19:00:49+00:00

I was doing a search about CSS best practices, thinking about what are the

  • 0

I was doing a search about CSS best practices, thinking about what are the best practices to maintain my code and I read something that is really against almost all I’ve learned, but it comes from google.
I always prefer to use multiple stylesheets. I find it better to maintain the code, and also my code won’t load several css classes that won’t be used.

Google developer guides us to exactly the oposite:

Combining external stylesheets into as few files as possible cuts down on RTTs and delays in downloading other resources.

Here are some rules of thumb for combining your CSS files in production, also recommended by them:

  1. Partition the CSS into 2 files each: one CSS file containing the minimal code needed to render the page at startup; and one CSS file containing the code that isn’t needed until the page load has completed.
  2. Serve CSS of a rarely visited component in its own file. Serve the file only when that component is requested by a user.
  3. For CSS that shouldn’t be cached, consider inlining it.
  4. Don’t use CSS @import from a CSS file.

Really… Google recommends inline css when the css would not be cached?? or use the less css files as possible? (sure we should not use a css for every thing, but we I always read experient web-designers recommending to use multiple style sheets, so i’m really confused (if it wasn’t coming from google, i’d ignore but as it is, I thought about asking stackoverflow’s users opinion, because I think it can be helpful to others too).

PS: You can find here the address of the information I posted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:00:51+00:00Added an answer on June 17, 2026 at 7:00 pm

    Page requests are usually taking longer then loading a few extra bytes. That is why Google suggests what they do. It is indeed best practice imo, and it is also what I do.

    Just to keep your code organised, you should consider working with a css preprocessor like less (lesscss.org). This way you can keep your code in separate files for easy developing. You then use a bunch of @import statements in your master less, and have that compiled to css. That is then the only css file you need to load in your page. Do make sure to @import .less files, and not .css files, as the latter will still generate an extra page request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After doing a long search on stackoverflow i didn't find any one talked about
I'm doing a webpage about apples (the fruit), I want to include Google search
I am doing a ALPHABETICAL ORDER SEARCH module for a project. that is it
Alright...I've given the site a fair search and have read over many posts about
this is related to my previous question about jqgrid. im doing now a search
How do i go about implementing nine man morris game without doing exhaustive search
I have a large C++ code base that I'm doing some refactoring on where
Im doing a search where the POST is: sok3 = 0,2,6 I would then
After doing a light search on the Lazarus site I've come to the conclusion
The Mongoid documentation only gives one example of doing a wildcard search: Person.where(first_name: /^d/i)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.