1.

What will happen after executing the script?(a) Execute script(b) Layout positioning of DOM elements(c) Paint DOM elements(d) Build DOM nodes in render treeI got this question in an interview for job.Enquiry is from Page Render BottleNecks Optimization in chapter Invocation and Performance Navigation of JavaScript

Answer»

The correct CHOICE is (d) Build DOM nodes in RENDER tree

Explanation: After EXECUTING the script, the DOM nodes will be BUILT in the render tree. The Render engine workflow contains:

PARSE Content

Build DOM nodes in render tree

Layout positioning of DOM elements

Paint DOM elements.



Discussion

No Comment Found

Related InterviewSolutions