Title: ReferenceError: Can&#8217;t find variable: loadAsync
Last modified: March 8, 2021

---

# ReferenceError: Can’t find variable: loadAsync

 *  Resolved [purityboy83](https://wordpress.org/support/users/purityboy83/)
 * (@purityboy83)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-loadasync/)
 * Hi
 * I am testing the php 8.0 environment right now
    wordpress 5.6.2 / php8.0.2 / 
   WP-Optimize 3.1.7
 * After changing from php7.4 to php8.0, “ReferenceError: Can’t find variable: loadAsync”
   error has occurred.
 * The error is the web browser’s console log.
    Ref img : [https://ibb.co/2jXbG36](https://ibb.co/2jXbG36)
 * If disable Minify, not occur problem
    WP-Optimize -> Minify -> turn off to “Enable
   Minify”
 * Even if the two options below are turned off, a problem occurs.
    Enable merging
   of CSS files and Enable merging of JavaScript files
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [dehabe](https://wordpress.org/support/users/dehabe/)
 * (@dehabe)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-loadasync/#post-14155176)
 * FYI, same issue here:
 * “Uncaught ReferenceError: loadAsync is not defined ….”
 * WordPress 5.6.2, php 8.0.2, WP-Optimize 3.1.7
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-loadasync/#post-14158875)
 * [@dehabe](https://wordpress.org/support/users/dehabe/) [@purityboy83](https://wordpress.org/support/users/purityboy83/)
   Thanks for sharing this, I’ll report this to our development team to run some
   tests on PHP 8+
 * Hopefully this should get fixed in future release.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ReferenceError: Can’t find variable: loadAsync’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-loadasync/#post-14158875)
 * Status: resolved