Skip to main content

How to load JavaScript asynchronously

Loading JavaScript scripts asynchronously, also known as  deferring  your scripts, allows you to load your JavaScript scripts separately from the core files of your website.

Follow these steps to load your scripts asynchronously:

  1. Go to WP-Optimize > Minify > JavaScript
  2. Scroll down to the section labelled, “”Load JavaScript asynchronously”
  3. Type in the name of your scripts — one per line — that you wish to load asynchronously:

Load async window

4. Click ‘Save settings’

The scripts you entered will now be loaded asynchronously and will not affect your website’s initial page load speed.