3 ms·
Not being a JavaScript guy, my eyes sort of glazed over after the flame graphs. Do I understand the gist of it right that a 200+ millisecond delay is normal if
by iofiiiiiiiii 8y ago
Not being a JavaScript guy, my eyes sort of glazed over after the flame graphs. Do I understand the gist of it right that a 200+ millisecond delay is normal if you just have 56KB of light blog page style JavaScript code whose loading you do not somehow optimize? Or is there something pathological in play here?
- alanning 8y agoIt 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.