Title: Uncaught TypeError:
Last modified: April 6, 2022

---

# Uncaught TypeError:

 *  Resolved [ptrkx](https://wordpress.org/support/users/ptrkx/)
 * (@ptrkx)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/)
 * hello all, first thank you for the great plugin, with which I could increase 
   my pagespeed significantly 🙂
 * But now I have an error in the console, which I unfortunately can not identify.
   
   Uncaught TypeError: Cannot read properties of undefined (reading ‘hasQueryArg’)
 * I already tried to exclude different plugins from asynchronous loading, but without
   success. If I disable the whole plugin the error is fixed. Therefore it must 
   be related to the asynchronous loading.
 * It would be great if someone could take a look at it.
    Thanks in advance
 * Best regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-59%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/#post-15531673)
 * can you try excluding `wp-includes/js` from being asynced/ deferred?
 *  Thread Starter [ptrkx](https://wordpress.org/support/users/ptrkx/)
 * (@ptrkx)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/#post-15531706)
 * Oh that was fast. Thank you for the answer. That solves the problem 🙂
    But doesn’t
   that mean that all scripts inside the folder are no longer loaded asynchronously?
   This should then give some negative effects on the pagespeed? Would it not be
   better to explicitly exclude only this one script.
 * But thanks again for the quick answer and problem solving 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/#post-15531714)
 * yes, you could try making the exclusion more specific, but it will take some 
   trial and error 🙂
 *  Thread Starter [ptrkx](https://wordpress.org/support/users/ptrkx/)
 * (@ptrkx)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/#post-15531734)
 * ah okay i understand. then so far thank you 🙂

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

The topic ‘Uncaught TypeError:’ is closed to new replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ptrkx](https://wordpress.org/support/users/ptrkx/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-59/#post-15531734)
 * Status: resolved