Compressing the JS bunddle to shorten loading time significantly


(Ben Carp) #1

This article suggest compression of the React bundle JS file, to shorten loading time significantly .

This suggestion raises a few questions; Since the JS file is cached in the browser, wouldn’t zipping increase the time for future loading, since the file will have to be decompressed? Can we simply compress the JS bunndle provided by CreateReactApp, and expect the browser to handle this? If so, which types of compression does the browser support?


(Yanis Papadopoulos) #2

Usually your pc power is higher than network speed.
Also it takes more time to compress. Decompressing is much much faster.