+ 1
What about deferred scripts?
The parsing of deferred scripts will be performed after the HTML is fully parsed, no matter where it is placed. So that's nearly the same like putting the script at the very end of the body element, isn't it? Wouldn't it be more professional to add a script that way?
1 Answer
+ 4
I would argue that it is more professional to use the defer attribute since you are using a well defined behavior defined in the HTML standard instead of a property that the HTML parser might or might not have