The language definition for JavaScript doesn't permit you to do the things you would want to do to make things like style setting fast. Normally in a strongly typed language the JIT would know it could turn a elem.[string] = string assignment into direct code...
That said, in capturing those perfs I did see a disturbing amount of variability across runs of the same page/script in Chrome :( So one significant caveat here might be that I guess I don't know if Chrome has some bad bugs in here that are making these perf results suspect?
-
-
I'm on a local machine and it's 1 image, 1 HTML file, and 1 js file, so I would not have expected there to be a lot of variability in the perf capture but there was. Especially in the part that happened before the script actually executed, which isn't relevant here, but still.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.