async loads the script asynchronously and executes it immediately after loading, while defer loads and executes the script after the HTML document is parsed.
async
defer