Title: Page isn&#8217;t loading Javascript properly when form submitted
Last modified: January 29, 2021

---

# Page isn’t loading Javascript properly when form submitted

 *  Resolved [rrcastillo](https://wordpress.org/support/users/rrcastillo/)
 * (@rrcastillo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/)
 * I am getting this error when I submit my form: This page isn’t loading JavaScript
   properly, and the form will not be able to submit. Please check out our troubleshooting
   guide for details on resolving this issue.
 * I unchecked “Enable anti-spam” and it is working just fine now. I don’t know 
   if this truly is the best solution though. What does it really mean when I uncheck
   this?
 * Also, my form worked in my local environment with “enable anti-spam” checked.
   It’s the same code but once it’s on the live site I have to uncheck it. Any thoughts
   on this?

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

 *  [Jade](https://wordpress.org/support/users/jadeam/)
 * (@jadeam)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-13988112)
 * Hi [@rrcastillo](https://wordpress.org/support/users/rrcastillo/),
 * We’ve seen some cases where there is a caching plugin active on the site that
   is minifying the Javascript files on the site causing some issues like you are
   getting.
 * If you happen to be using a caching plugin, can you please try to exclude the
   pages where the forms are present from being cached? Another option would be 
   ti exclude this file from being cached/included in the minification: `/wp-content/
   plugins/wpforms-lite/assets/js/wpforms.js`
 * In case you are not using a caching plugin, can you please provide us with the
   link to the page where we can see the form so that we can check it?
 * Thank you.
 *  Thread Starter [rrcastillo](https://wordpress.org/support/users/rrcastillo/)
 * (@rrcastillo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-13988399)
 * I am using WP Fastest Cache. I just excluded the page but it still is giving 
   me the same error. Here is the link to the page:
 * [https://b.halfpricebooks.com/read/](https://b.halfpricebooks.com/read/) (The
   anti-spam is checked right now.)
 *  Thread Starter [rrcastillo](https://wordpress.org/support/users/rrcastillo/)
 * (@rrcastillo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-13993462)
 * [@jadeam](https://wordpress.org/support/users/jadeam/) WP Fastest Cache was added
   before I came on board. It actually doesn’t look like it was ever enabled. So
   I don’t think this plugin is the issue after all which is probably why I am still
   getting the error after excluding the page. Any other suggestions?
 *  [Jade](https://wordpress.org/support/users/jadeam/)
 * (@jadeam)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-13998601)
 * Hi [@rrcastillo](https://wordpress.org/support/users/rrcastillo/),
 * I tried sending a test entry to your form and it seems to be working without 
   any issues as what you can see in my screencast [here](https://a.supportally.com/n8HSZQ)
   but you might have disabled the anti-SPAM option on this form.
 * When you get the chance, can you please try to create a new where we can access
   the form with the anti-SPAM option enabled so that we can try to see if there’s
   anything we can suggest based on the error?
 * Thank you.
 *  Thread Starter [rrcastillo](https://wordpress.org/support/users/rrcastillo/)
 * (@rrcastillo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-13998762)
 * [@jadeam](https://wordpress.org/support/users/jadeam/) Yes, I disabled it because
   I didn’t want it to not be working for too long. It is enabled now. I can only
   leave it enabled for today as this page will be marketed tomorrow.
 *  [Jade](https://wordpress.org/support/users/jadeam/)
 * (@jadeam)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-14032071)
 * Hello [@rrcastillo](https://wordpress.org/support/users/rrcastillo/),
 * My apologies for the wait.
 * In case you want us to check the issue more, is it possible that you can create
   a test page and add a form where the anti-spam option is enabled?
 * That way, we’ll be able to see and check if there is an error that can give us
   a hint and provide further suggestions.
 * Thanks!
 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-14060281)
 * Hello [@rrcastillo](https://wordpress.org/support/users/rrcastillo/),
 * We haven’t heard back from you in about a week, so I’m going to go ahead and 
   close this thread for now. But if you’d like us to assist further, please feel
   welcome to continue the conversation.
 * Thanks!

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

The topic ‘Page isn’t loading Javascript properly when form submitted’ is closed
to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/page-isnt-loading-javascript-properly-when-form-submitted/#post-14060281)
 * Status: resolved