Title: Gravity Forms causing jquery error even with jquery excluded
Last modified: November 17, 2019

---

# Gravity Forms causing jquery error even with jquery excluded

 *  Resolved [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/)
 * Hi Support,
 * Autoptimize has been an excellent plugin. It is working well on all my pages 
   except for the contact page. It is causing issues with some svg graphics and 
   other minor visuals on the page.
 * When I inspect page, it says uncaught typeError and has jquery being the issue.
 * I have searched this forum already and I can see some people having the same 
   issue but I have already excluded jquery in the plugin: js/jquery/jquery.js, 
   js/jquery-3.1.3.min.js
 * Do you have further suggestions on how to fix this issue?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgravity-forms-causing-jquery-error-even-with-jquery-excluded%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141941)
 * Can you try excluding `themes/sydneyprive/js/scripts.js`?
 *  Thread Starter [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141948)
 * Did that but nothing changed. Here are all my excludes:
 * wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, js/jquery-
   3.1.3.min.js, js/modal.min.js, themes/sydneyprive/js/scripts.js, sydneyprive/
   js/scripts.js
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141953)
 * OK, can you now untick the “minify excluded CSS/ JS”-option?
 *  Thread Starter [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141979)
 * I unticked it but nothing changed.
 * This is a screenshot of my JavaScript options for this plugin: [https://i.imgur.com/3NXGWVE.png](https://i.imgur.com/3NXGWVE.png)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141987)
 * hmm, can you try excluding `themes/sydneyprive` entirely instead?
 *  Thread Starter [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12141989)
 * added themes/sydneyprive and themes/sydneyprive/ but nothing changed 🙁
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12142005)
 * let’s take the easy road in that case (have to leave soon), [exclude the page from being autoptimized with this little trick](https://blog.futtta.be/2018/06/19/quick-trick-to-disable-autoptimize-on-a-page/)
   and be done with it? 😉
 *  Thread Starter [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12142032)
 * hehe thanks. That tricked fixed the visual bugs.
 * The jquery issue is still displaying in dev tools though. Will this still be 
   an issue in future?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12142041)
 * > The jquery issue is still displaying in dev tools though
 * can you copy/paste the exact message?
 *  Thread Starter [mitchellmilk](https://wordpress.org/support/users/mitchellmilk/)
 * (@mitchellmilk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12143743)
 * Here is a screenshot of the issue in devtools:
 * > [View post on imgur.com](https://imgur.com/96bWmls)
 * Hope that helps
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12144245)
 * > The jquery issue is still displaying in dev tools though. Will this still be
   > an issue in future?
 * No idea to be honest. Given the page now is not autoptimized any more this confirms
   the root cause of what you were experiencing was not the autoptimization as such
   but with the theme’s scripts.js. Maybe contact the theme developer for support
   on that?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12159783)
 * I’ll close this as “resolved” mitchellmilk, feel free to follow up if you still
   encounter issues!
 * Feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * have a nice day!
    frank

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

The topic ‘Gravity Forms causing jquery error even with jquery excluded’ is closed
to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [contact](https://wordpress.org/support/topic-tag/contact/)
 * [forms](https://wordpress.org/support/topic-tag/forms/)
 * [GravityForms](https://wordpress.org/support/topic-tag/gravityforms/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 12 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/gravity-forms-causing-jquery-error-even-with-jquery-excluded/#post-12159783)
 * Status: resolved