javascript is executed only after the page dom model is loaded. javascript
cannot be used
plus defer means it will be executed after the page is completely loaded, which is equivalent to window .onload, but more flexible than window.onload in application