1.

State true or false. It is faster to render HTML and CSS than to interpret and execute JavaScript.(a) True(b) FalseI had been asked this question in a job interview.My query is from Web Browsers in chapter HTML Fundamentals of HTML

Answer»

Correct CHOICE is (a) True

The best I can explain: When it comes to ordering your CSS and JavaScript, you want your CSS to come first. The reason is that the rendering thread has all the style information it needs to RENDER the PAGE. If the JavaScript includes come first, the JavaScript engine has to parse it all before continuing on to the next set of RESOURCES.



Discussion

No Comment Found

Related InterviewSolutions