Examveda
Examveda

Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )

A. parse

B. a sync

C. defer

D. type

Answer: Option C

Solution(By Examveda Team)

In order to load a page, the browser must parse the contents of all script tags, which adds additional time to the page load) By minimizing the amount of JavaScript needed to render the page, and deferring parsing of unneeded JavaScript until it needs to be executed, you can reduce the initial load time of your page.

This Question Belongs to Javascript >> Basic And Variables

Join The Discussion

Related Questions on Basic and Variables