async,deferClassic scripts may specify
deferorasync, but must not specify either unless thesrcattribute is present.For classic scripts, if the
asyncattribute is present, then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available (potentially before parsing completes). If theasyncattribute is not present but thedeferattribute is present, then the classic script will be fetched in parallel and evaluated when the page has finished parsing. If neither attribute is present, then the script is fetched and evaluated immediately, blocking parsing until these are both complete.The
deferattribute may be specified even if theasyncattribute is specified, to cause legacy web browsers that only supportdefer(and notasync) to fall back to thedeferbehavior instead of the blocking behavior that is the default.
typeThe default, which is used if the attribute is absent, is "
text/javascript".