Current time: 09-21-2020, 11:10 AM Hello There, Guest! (LoginRegister)

Poll: Split CSS file into 2 downloads or not?
Split it!
Don't split
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
split css file to improve perceived latency?
08-15-2010, 02:41 AM
Post: #2
RE: split css file to improve perceived latency?
How small is it compressed? What you really care about is the wire size and it would have to be fairly large to be faster split in two. Some things to consider before splitting:

- on IE7, if the css is on the same domain as the base page then the 2nd css file will not be requested until either the base page fully downloads or the first one finishes (and then you need to pay the round trip latency)

- If it can be requested in parallel (different domain or browser that supports more connections) then it may be a little faster. Particularly since the first css download may trip over some slow start windows that cause it to wait an additional round trip (depends on the server's TCP stack and the size of the CSS file).

- I'm assuming you have no javascript in the head because you might be better off letting that be downloaded in parallel to the CSS if you do (assuming different domain where you have 2 connections).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: split css file to improve perceived latency? - pmeenan - 08-15-2010 02:41 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)