The scripts marked withdeferare executed right after the domInteractive event, which happens after the HTML is loaded, parsed and the DOM is mounted. Once this is done, the browser will emit the domComplete event, and then onLoad. Async and defer are basically two boolean attribu...