Inlining the CSS was considerably faster in all my tests.
Inlining the CSS was considerably faster in all my tests.
I'd expect in-lining the css to be a slight net loss once the data is cached - my strategy would be a `style-<md5sum>.css` with a long max-age.
I wish browsers could cache page fragments!
I expected that too but it didn't work out that way. I'm not sure why, possibly a cache lookup is still slower than reading the style info out of the same page. I don't know enough about the guts of a modern browser to make the call but the numbers aren't there.
Can you expose your methodology, or are you using a common tool for testing these things?
I was not expecting to see such a difference between the two browsers, but I'm not familiar enough with firefox to guess what's causing it :-\
Though at that point gzip is probably the better solution.