u/sixsicsix - Archived Voat Post in v/programming
u/sixsicsix
  • home
  • search

u/sixsicsix

0 posts · 1 comment · 1 total

Active in: v/programming (1)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Are CDNs making the benefits of compressing/minifying the css/javascript obsolete?

a minified heap of js or css is a single stream, giving your connection an opportunity to saturate for the duration of the download.

downloading the assets altogether without being minified would increase the amount of tcp handshaking, as well as the amount of hostname-level blocking (waiting for the previous asset from specific-cdn-hostname to finish before initiating a new one).

i suppose you can cope with this by tuning the client. i don't recall the specific of http pipelining re: whether it would help - i'd have to waterfall a page to see

but yeah thinking about it conceptually i would say minify + cdn would be the way to go - the cdn part gives you that geographical advantage, and minify lets you download one fat chunk from the cdn, without a hole lot of handshaking or keepalives going on.

as a side, i wouldnt recommend including publicly used stuff like bootstrap or jquery or google fonts or what have you - i'd work out automation to host the most up to date copy within your own cdn.

0 30 May 2016 04:30 u/sixsicsix in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.