Day 18 of⚡️ #30DaysOfWebPerf ⚡️
Byte for byte, JavaScript is your most expensive asset. You pay the same price for download time, but JS needs even more time for parse, compile, and eval.
One strategy we can use is to better evaluate our dependencies.15:15 PM - 06 Dec 2019
Do we need that extra library? How much will it cost? Are there better alternatives?
Bundlephobia is a great tool to help you answer these questions. bundlephobia.com
For example, do you use Moment? Maybe try date-fns instead. It works with tree-shaking.15:15 PM - 06 Dec 2019
Discussion