• Resolved adamovic

    (@adamovic)


    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

    And screenshot of site after deactivation:
    screenshot-of-site-with-errors

    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)
  • Thread Starter adamovic

    (@adamovic)

    Done. It works as well.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, in that case guess you’re done? 🙂

    Thread Starter adamovic

    (@adamovic)

    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

    (@optimizingmatters)

    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

    (@adamovic)

    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

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

    and have a great weekend!
    frank

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

The topic ‘jquery error’ is closed to new replies.