AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Misc / Issues
  5. Litespeed Cache Setup

Litespeed Cache Setup

If your WordPress is running on a Litespeed server, there is a known issue with the Litespeed Cache Load JS Deferred feature.

When the Litespeed Load JS Deferred feature is set to “Delayed”, it is known to cause issue even in core WordPress, WooCommerce and several other plugins as shown in the support forums:

https://wordpress.org/support/topic/problems-with-scripts-that-are-connected-to-wp_localize_script

https://wordpress.org/support/topic/script-loading-strategies-by-wp-and-load-js-deferred-by-ls

https://wordpress.org/search/js+delay+intext%3A%22Plugin%3A+LiteSpeed+Cache%22

Solution

  1. Login to your WordPress admin dashboard.
  2. Go to the Litespeed Cache menu.
  3. Page Optimization > [2] JS Setting.
  4. Load JS Deferred: OFF
  5. Purge cache.
Screenshot of Litespeed Cache Load JS Deferred feature
Screenshot of Litespeed Cache Load JS Deferred feature