defer
noun
say it: “dih-FER” /dɪˈfɝ/
A script attribute that downloads the file while the page is read and runs it only after the HTML is done, keeping scripts in their written order.
What is defer?
defer — A Boolean classic-script attribute that delays execution until parsing finishes while preserving document order.
In a sentence
- “With defer on the script tag, the menu text shows first and the code runs after.”
Level: Journeyman · More JavaScript terms at this level
Updated