15 ms·
It depends on what the JavaScript code is doing. The article discusses an example where code is loading Intl.DateTimeFormat which takes some time but is not im
by alanning 8y ago
It depends on what the JavaScript code is doing.
The article discusses an example where code is loading Intl.DateTimeFormat which takes some time but is not immediately used.
So if the 56KB code doesn’t do a lot of loading of expensive components then it may not need further optimization, although it may still have the problem of blocking user input.
Main moral of the story is you can’t assume performance based on code size, you have to measure.