1.

What does the rendering engine do when it encounters JavaScript?(a) Skips the code(b) Continues painting(c) Switches to Javascript Interpreter(d) Restructures the codeThis question was addressed to me at a job interview.My question comes from Page Render BottleNecks Optimization topic in section Invocation and Performance Navigation of JavaScript

Answer»

The CORRECT answer is (c) Switches to Javascript Interpreter

To explain I would say: A rendering engine is a software that draws text and images on the SCREEN. The rendering engine HANDLES PAINTING the content to the screen. When it encounters JavaScript, it hands it off to the JavaScript interpreter.



Discussion

No Comment Found

Related InterviewSolutions