You can load a JavaScript file asynchronously by setting the async attribute to true in the script tag. This allows the HTML document to continue loading while the JavaScript file is downloaded and executed.