3 ms·
Is that really meaningful when a single photo will have far more data than most JS payloads? Judging it by KB of data just doesn't make sense, unless you apply
by untog 8y ago
Is that really meaningful when a single photo will have far more data than most JS payloads?
Judging it by KB of data just doesn't make sense, unless you apply it to everything. And then it would show on pretty much every site.
- nsp 8y agoJavascript also has the overhead of parsing the source code in addition to network transfer, which can easily take multiple seconds with a multi-megabyte bundle and that's a penalty even when the js is served from the browser cache
- untog 8y agoTrue, but JS with a really inefficient loop can do the same. That's the problem in judging by KB, it isn't really very conclusive. Browsers already alert on long-running scripts, maybe the threshold on that should be brought down instead.