Title: Async JS problem with WPForms
Last modified: October 23, 2020

---

# Async JS problem with WPForms

 *  [activequilibreyv](https://wordpress.org/support/users/activequilibreyv/)
 * (@activequilibreyv)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/async-js-problem-with-wpforms/)
 * Hello,
 * Thanks to a customer report, I realized lately that my formulars (built with 
   WPForms Lite) were not working on iPhones. They work on Android and Computers.
 * Digging into this I was told it could be a problem with the reCaptcha. I did 
   contact WPForms support about this and they found out that another pluging was
   optimizing their script a wrong way… playing with activating-deactivating my 
   plugins I found out that your Async JS pluggin was causing the problem.
 * I reactivate your pluggin, search your support forum, and get to the parameters
   to:
 * a) exclude following scripts trhough the ‘Script exclusion’ parameter
    `/wp-content/
   plugins/wpforms-lite/assets/js/wpforms.js, wpforms.js, google.com/recaptcha, 
   api.js`
 * b) exclude WPForms Lite through the ‘Plugin exclusions’ parameter
 * but still, the forms aren’t working when I leave Async JavaScript activated.
 * Did I mistype the script exclusions ? I wonder this because I’m not sure if I
   should write there only the script filename or its entire path. I’m also not 
   sure if the path ‘google.com/recaptcha’ is the correct one for, when looking 
   into my website files structure, I don’t find a google folder…
 * Any Idea on how to exclude these the right way?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fasync-js-problem-with-wpforms%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/async-js-problem-with-wpforms/#post-13571737)
 * the exclusions look OK (you can use by script filename or -part of- the path),
   but:
    * you’re also using Autoptimize, so you might have to exclude wpfroms from
   being autopimized * you might want to try “defer” iso “async” (as the latter 
   does not honor script order) * if the form does not work have a look at the browser
   console for JS errors, those might help identifying the root cause
 * hope this helps,
    frank
 *  Thread Starter [activequilibreyv](https://wordpress.org/support/users/activequilibreyv/)
 * (@activequilibreyv)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/async-js-problem-with-wpforms/#post-13572778)
 * Thank you Frank for your clues, it seems to be solved now!
 * For your info, and for those who might encouter the same problem as me later:
 * – though the Autoptimize alone didn’t create the problem, I tryed to exclude 
   google.com/recaptcha__fr, wpforms.js from it, without any success
 * – I solved this problem through switching every “async” Settings from “async”
   JavaScript into “defer” as you told me. And now it’s all right also on iPhone.
 * Have a nice WE and thanks again for your help!
    Yvan
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/async-js-problem-with-wpforms/#post-13572828)
 * happy it now works Yvan, have a great weekend as well! 🙂
 * and feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/async-javascript/reviews/#new-post)!
   🙂

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

The topic ‘Async JS problem with WPForms’ 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/)

## Tags

 * [exclusions](https://wordpress.org/support/topic-tag/exclusions/)
 * [reCAPTCHA](https://wordpress.org/support/topic-tag/recaptcha/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/async-js-problem-with-wpforms/#post-13572828)
 * Status: not resolved