Title: How to set exceptions in asynchronous JavaScript
Last modified: April 3, 2022

---

# How to set exceptions in asynchronous JavaScript

 *  [seotaro](https://wordpress.org/support/users/seotaro/)
 * (@seotaro)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-set-exceptions-in-asynchronous-javascript/)
 * Hello.
 * First of all, thank you so much for developing a useful plugin.
 * The plugin works fine, but I have a compatibility question with the cache plugin.
 * I’m using the function to load javascript asynchronously in the Wp-rocket plugin.
 * And in the description of your plugin, I saw an explanation not to use the asynchronous
   loading function.
 * So I’m trying to use the Excluded JavaScript Files part of the rocket plugin.
 * Which javascript file in the plugin can I put as an exception?
 * Can I just type jquery like below?
 *     ```
       /jquery-*[0-9.]*(.min|.slim|.slim.min)*([^\.]*).js
       /jquery-?[0-9.]*(.min|.slim|.slim.min)?.js
       ```
   
 * Or do I have to add the full path to the plugin as an exception like this:
 * `/plugins/enable-jquery-migrate-helper/js/(.*).js`
 * Thank you.
    -  This topic was modified 4 years, 1 month ago by [seotaro](https://wordpress.org/support/users/seotaro/).

The topic ‘How to set exceptions in asynchronous JavaScript’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/enable-jquery-migrate-helper.svg)
 * [Enable jQuery Migrate Helper](https://wordpress.org/plugins/enable-jquery-migrate-helper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-jquery-migrate-helper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [seotaro](https://wordpress.org/support/users/seotaro/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-set-exceptions-in-asynchronous-javascript/)
 * Status: not resolved