FAQs

How do I load JavaScript scripts 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.

Our plugins

Try TeamUpdraft’s full suite of WordPress plugins.

  • UpdraftPlus

    Back up, restore and migrate your WordPress website with UpdraftPlus

  • WP-Optimize

    Speed up and optimize your WordPress website. Cache your site, clean the database and compress images

  • UpdraftCentral

    Centrally manage all your WordPress websites’ plugins, updates, backups, users, pages and posts from one location