The async attribute downloads the script without blocking HTML parsing but executes it immediately once downloaded, potentially before the document is fully parsed.