top | item 24513660

(no title)

cel1ne | 5 years ago

Use CDNs for delivering JavaScript libraries instead of including everything into custom bundles.

React could be transferred ONCE to the browser-cache instead of hundreds of times.

discuss

order

youngtaff|5 years ago

This isn't effective as browsers partition the cache using a double (or triple) key of the document origin and third-part origin.

Safari started this and Chrome is following - https://andydavies.me/blog/2018/09/06/safari-caching-and-3rd...

So with a public JS CDN React would be still transferred multiple times.

Using a custom bundle is probably more efficient as it should compress better resulting in lower download sizes (bit often modern bundles are huge so I wouldn't rely on this point)