Definition and Usage
The defer attribute is a boolean attribute.
When present, it specifies that the script is executed when the page has finished parsing. The defer attribute is only for external scripts (should only be used if the src attribute is present).
This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing. The
defer attribute should only be used on external script.