2

What I mean by the question title is for example, let's say I have a really busy homepage and I use tons of CSS to do things like uppercase and lowercase and capitalize SEVERAL blocks of text when those are things that can be done manually with text. And I do it a ton of times on the page. Would that reduce page load performance over simply writing the blocks of text how I want them to appear without using CSS on those blocks of text?

EDIT: Found what I was looking for here: Is CSS text-transform "expensive" thanks to @BenY.

3
  • 1
    This might be helpful: stackoverflow.com/questions/4850190/… Commented Nov 5, 2013 at 2:46
  • @BenY that's the exact answer I was looking for. I would approve your answer as the correct one, but you posted as a comment. Thanks anyway! Commented Nov 5, 2013 at 3:02
  • Glad it helped -- I wouldn't want to post someone else's answer as my own though :) Commented Nov 5, 2013 at 15:26

2 Answers 2

1

Once CSS is loaded, it is cached in user's browser. You can minify CSS to reduce the size of CSS.

In fact, browsers render CSS very fast. You shouldn't worry the CSS performance. However, JavaScript is comparatively slower. You should optimize your JS instead.

Sign up to request clarification or add additional context in comments.

1 Comment

@BenY helped above with what I was looking for! This post pretty much answers exactly what I was looking for: stackoverflow.com/questions/4850190/…
0

When you say you "have a really busy homepage", do you mean traffic-wise? If so, I think you are a little confused about how CSS works. All of the burden is on the client (browser), aside from serving the CSS files themselves.

If you're worried about a performance impact from capitalizing through CSS, don't. That is not going to make any difference. Do whatever is easiest for you.

1 Comment

I wasn't worried about the server. Just kind of had a random thought about too much CSS kind of being the "tipping point" if a page was already large* But I already figured out that it was a misconstrued thought. Thanks though! *Number of requests, images, javascript, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.