Defer ensures that a function call is made later in a program's execution, usually for housekeeping purposes. In other languages, words like assure and finally would be used instead of postpone.
Async means that code is executed when it is downloaded, rather than blocking DOM development. Defer - implies run the code after the browser has completed the DOM creation and rendering process.
DEFER ensures that script execution occurs at the same time as or after ASYNC. Scripts are probably made DEFER or ASYNC because they are less important for the page's critical content. As a result, it's preferable to use DEFER to execute them outside of the main rendering time.
The defer and async scripts are run at various times. The browser will pause the document parser after downloading an async script, execute the script, and then resume parsing the document. The delay script, on the other hand, won't run until the parser has finished its work.
Pasalapudi Pujita Sri Naga Santhoshi
they has clearly explained and easily understand to all
Superb and amazing 😍🤩 enjoyable experience.
This is by far the most comprehensive tutorial I ever come across. I was really excited to discover this amazing tutorial, but unfortunately couldn't continue due to keypad noise which I'm allergic to
VAISHNAVI RAJESH CHALKE
it helps me to clear my basic conceptual knowledge
Thank you! I enjoyed the course; I learned so much.