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 7839019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:17:31+00:00 2026-06-02T15:17:31+00:00

Is it a bad idea to hard code style sheets in partial HTML views?

  • 0

Is it a bad idea to “hard code” style sheets in partial HTML views?

For small partial views, it seems preferable to having yet another external style sheet, the reference to which I have to keep track of outside the partial view

For clarification: I am not really talking about the same partial view that would get used many times across a single page – but rather about the same view that would be rendered on many different pages.

How should I manage style sheets for partial views?

  • 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-02T15:17:34+00:00Added an answer on June 2, 2026 at 3:17 pm

    Generally, it’s best to put all styles for an entire site into a single CSS file to speed performance. Separate the regions of the style-sheet for various components of your front end by clear comment blocks.

    I have stylesheets with 800+ lines, with all declarations for a particular selector on a single line, that add up to 20-30k only. It gets downloaded only once, then it’s cached for every page on your site. Make sure you manage your expires header. Avoid making multiple http requests with separate style sheets.

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

Sidebar

Related Questions

I am having a very hard time finding a good resources or any idea
Why is it a bad idea to have a ID in the URL in
Is this a bad idea? Private Class GH_DataStructureEnumerator(Of Q As Types.IGH_Goo) Implements IEnumerable(Of Q)
if this is a bad idea, how to allocate memory in the function?
Is it a good or bad idea to make setters in java return this?
Without going into whether this is a good or bad idea: Is it possible
Why is the catch(Exception) almost always a bad Idea?
I understand that in general it is a bad idea to start a new
Am I crazy, or is it a bad idea to keep my SMTP username
I'm writing a php application and was wondering if it's a bad idea to

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.