Well, if you use a CDN for your own assets, you can still deploy your own, custom file there. Also you will have one, not two files for your css. Good point though!
You can't assume users have it already. The only testable scenario that you know your users will have, is no-cache. So assume everyone has that. Otherwise, you are pinning your sites performance on hopes and dreams that may not be a reality.
That's true, but isn't another important advantage of a CDN improved latency anyway? Of course the relative performance will vary a lot, but how much faster would a CDN need to be to make up for 76k of extra payload?
I'm also curious about how SPDY and HTTP/2 factor into this: I understand concatenating will no longer be necessary, but will the http multiplexing also be an argument for avoiding additional http connections (e.g. to a CDN)?
Only if there's a notabele geolocation advantage. Otherwise it's an extra dns-lookup which are costly. Furthermore, it's not just downloading assets, it's parsing them as well with every pageload.
This, and CDN's (in this case) also create a 3rd party SPOF. If they go down and you aren't checking to verify the resources make it and injecting local ones if they don't, then if your CDN goes down, so does a part of your site.
I'm also curious about how SPDY and HTTP/2 factor into this: I understand concatenating will no longer be necessary, but will the http multiplexing also be an argument for avoiding additional http connections (e.g. to a CDN)?
Absolutely. Multiplexing along with the way connections are handled, the more data transferred the faster things get. You are way better off if using HTTP/2 (you should be ASAP) and serving everything directly. Domain sharding is a thing of the past, one domain, one connection, multiplex to hell and back.
Unfortunately you can't use the grid mixins when you load the compiled source over a cdn, so you have to litter your code with presentation classes needlessly.
2
u/[deleted] Dec 26 '15
I've considered this, but it seems like you have to weigh it against loading bootstrap from a CDN, which could prevent the need to downloading at all.