Courses / HTML
82. Using the 'defer' Attribute
Applying the 'defer' attribute to script tags to prevent blocking the rendering of HTML.
1 min read Chapter 82 of 102
HTML
Using the 'defer' Attribute
The 'defer' attribute allows scripts to load without blocking HTML rendering.
"I want my web pages to load faster without waiting for scripts to finish."
The 'defer' attribute in script tags ensures that scripts are executed after the document has been fully parsed, improving page load times.
"I want my web pages to load faster without waiting for scripts to finish."
The 'defer' attribute in script tags ensures that scripts are executed after the document has been fully parsed, improving page load times.