Title: jquery error
Last modified: May 14, 2020

---

# jquery error

 *  Resolved [adamovic](https://wordpress.org/support/users/adamovic/)
 * (@adamovic)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/)
 * Hi guys,
 * I’m having a problem with Autoptimize and I cant figure out what’s going on. 
   Attempting to combine javascript and css files into fewer files to reduce the
   number of HTTP requests upon page load I installed Autoptimize and it worked 
   great. Then I noticed some elements on my page broke, which was somewhat expected.
   Since I didn’t know exactly which scripts needed to be excluded, I deactivated
   Autoptimize and decided to start again from scratch. But as I deactivated the
   plugin a bunch of jquery errors popped up in DevTools.
 * Screenshot of site before:
    [screenshot-of-site-before](https://gamblineers.com/before-site)
 * And screenshot of site after deactivation:
    [screenshot-of-site-with-errors](https://gamblineers.com/error-site)
 * If I open the site while logged in to wordpress, I don’t see the errors and the
   site looks right but if I go incognito or use another browser/computer, the errors
   appear. I guess that’s an admin/cache thing.
 * I can’t undo things more than I already did with deactivating the plugin and 
   if possible, I would like to continue using Autoptimize + figure out which scripts
   and css to exclude if possible.
 * Any ideas?

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/jquery-error-77/?output_format=md) [1](https://wordpress.org/support/topic/jquery-error-77/?output_format=md)
2

 *  Thread Starter [adamovic](https://wordpress.org/support/users/adamovic/)
 * (@adamovic)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12838798)
 * Done. It works as well.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12838854)
 * well, in that case guess you’re done? 🙂
 *  Thread Starter [adamovic](https://wordpress.org/support/users/adamovic/)
 * (@adamovic)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12839375)
 * Yes 🙂 Pleasure working with you 😉
 * Oh, perhaps just this: do I leave async javascript deactivated or would it be
   smart to try making it work aswell? I’m assuming AO doesn’t do asyncing/defering?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12839423)
 * AO defers all JS except the excluded one (so jquery & the that theme defer-recaptcha.
   js one -> maybe log a ticket at the theme developers; they should use `jQuery`
   and not `$`). You could you leave those be or try to async them on AO’s extra
   tab or indeed try with Async Javascript (which is esp. useful if you have a lot
   of 3rd party JS left as render-blocking).
 * Do keep in mind that jQuery often cannot be optimized without breaking certaint
   things though.
 *  Thread Starter [adamovic](https://wordpress.org/support/users/adamovic/)
 * (@adamovic)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12839721)
 * Ok, I will play around a bit to see what works. As long as the site functions
   now. Thank you very much for your responsiveness and time. I will make sure to
   recommend AO to people I work with!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12839826)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * and have a great weekend!
    frank

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/jquery-error-77/?output_format=md) [1](https://wordpress.org/support/topic/jquery-error-77/?output_format=md)
2

The topic ‘jquery error’ 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

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 21 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/jquery-error-77/page/2/#post-12839826)
 * Status: resolved