Async Attribute
An HTML attribute that makes a script file load and execute in parallel with HTML parsing, without waiting for the DOM to be complete.
With <script src="..." async>, the HTML parser never pauses for the script—it's fetched and executed as soon as it's ready, which may be before or after the DOM finishes building. Async is perfect for independent scripts that don't need to wait on the DOM or other scripts—for example, analytics or third-party services.
Async does not preserve execution order: two async scripts may run in any order depending on which loads fastest. If one script depends on another or manipulates the DOM, defer is often a better choice. For "fire-and-forget" scripts like Google Analytics, async is the standard choice.