Chrome's V8 JavaScript engine compiles JavaScript into machine code just before it is executed.
V8 compiled JavaScript on the main thread, where it could interfere with the performance of the JavaScript application.