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

  • Home
  • SEARCH
  • 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 7403947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:11:06+00:00 2026-05-29T05:11:06+00:00

Which do you think is faster, have a ‘main.css’ style sheet then an additional

  • 0

Which do you think is faster, have a ‘main.css’ style sheet then an additional style sheet for EACH section of the site, or having a ‘main.css’ style sheet and then having one additional style sheet for the entire rest of the site? The additional style sheet would hook elements via body IDs and classes and would require a longer selector. For example, #body-id .page-wrap.
The question boils down to: Does adding an additional selector for the section particular styles (10 – 20 unique elements) slow the site more than an additional HTTP request for a non-cached style sheet?

  • 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-05-29T05:11:07+00:00Added an answer on May 29, 2026 at 5:11 am

    The question boils down to: Does adding an additional selector for the section particular styles (10 – 20 unique elements) slow the site more than an additional HTTP request for a non-cached style sheet?

    No. The HTTP request will invariably be slower because of network latency. This is why you see pages load and render progressively — it’s because browsers are so good at computing and rendering styles that it happens while a page is being downloaded.

    This is entirely up to you, though. If server-side performance is critical, it would be best to keep HTTP requests to a minimum, but don’t sacrifice maintainability for it. Forget about selector parsing or rendering performance, as that stuff is usually up to the browser to worry about.

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

Sidebar

Related Questions

Pretty straightforward, but I just want to know which is faster. I think simply
I have a problem which I think is related to forward declarations, but perhaps
I have a question which I think involves conditional entropy in the field of
I have some code which I think has extra release statements. Is the code
I have come across a situation (which I think is weird but is possibly
I have performance issues in this code segment which I think is caused by
I have a site, which requests data from a SQL DB, from different rows,
What do you think - which functions should be implemented to make work with
I'm starting a project which I think would benefit from bindings (I've got a
Today I got this question for which I think I answered very bad. 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.