1.

For best speed position of JavaScript code should be at ______________(a) top of the code(b) bottom of the code(c) middle of the code(d) anywhere in the codeThe question was posed to me during an internship interview.This interesting question is from Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer»

Right choice is (b) BOTTOM of the code

The best I can explain: For BETTER loading time of the page it is always recommended to put JAVASCRIPT code at the bottom of the MAIN code of the page before

tag. CSS code should be at the beginning of the code.



Discussion

No Comment Found

Related InterviewSolutions