
Async and defer in Javascript loading
Table of Contents How HTML displayed on browser Script Tag Async attribute Defer attribute Difference beetween Async and Defer Use cases How HTML displayed on browser First, browser will download resources and parse HTML to display. HTML is parsed as soon as resources are loaded Script Tag To load a javascript file, we use script tag <script src="/path/to/script.js"></script> 👇️Below is loading process: ✍️ Explain: First, HTML code will be parsed until reach script tag, script will be downloaded....