Support » Plugin: Autoptimize » jQuery is not defined

  • Resolved ananotheruser



    I get this error and I already tried what is said in the FAQ (js/jquery/jquery.js exclusion and tick”also aggregate inline JS”) but it doesn’t work, what should I do ?


    • This topic was modified 1 year, 5 months ago by  ananotheruser.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Frank Goossens


    hard (impossible) to say without seeing what is happening @anaotheruser, can you share your URL?


    Hi Frank,

    Thank you for your quick reply. The URL is:


    Plugin Author Frank Goossens


    avond desiree ๐Ÿ™‚

    1. Can you copy/paste the contents of the “Exclude scripts from Autoptimize:” field here?
    2. It’s better not to aggregate inline JS in general ๐Ÿ™‚

    groeten uit Belgiรซ,

    Here is my website. ๐Ÿ™‚

    1. seal.js, js/jquery/jquery.js
    2. It’s not actually ticked

    These both options were already set like this by default. ๐Ÿ™‚

    Full error from Chrom Web Dev Tools :

    Uncaught ReferenceError: jQuery is not defined
    at /wp-content/cache/autoptimize/js/autoptimize_044ab9b885f644eff8a157738fe49753.js

    • This reply was modified 1 year, 5 months ago by  ananotheruser.
    Plugin Author Frank Goossens


    ah, confusion galore ๐Ÿ™‚

    you have the same error with AO disabled (add ?ao_noptimize=1 to the URL), so this is not due to autoptimize.

    bon weekend,

    You’re right, I’ve the same error if I deactivate your plugin.
    Pardon me. And thank you for your fast and efficient support ! ๐Ÿ™‚

    Hi Frank!

    I’ve the same issue. This errors appears in my console:

    Uncaught Error: No handler option passed to Waypoint constructor
    at new t (autoptimize_35857a0โ€ฆ.js:312)
    at HTMLDivElement.<anonymous> (autoptimize_35857a0โ€ฆ.js:312)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    at a.fn.init.waypoint (autoptimize_35857a0โ€ฆ.js:312)
    at t.$el.waypoint.offset [as callback] (autoptimize_35857a0โ€ฆ.js:185)
    at t.trigger (autoptimize_35857a0โ€ฆ.js:312)
    at i.flushTriggers (autoptimize_35857a0โ€ฆ.js:312)
    at autoptimize_35857a0โ€ฆ.js:312

    Site URL es and I tried with ?ao_noptimize=1 and error disappear. “aggregate inline JS” isn’t ticked.

    Exclude scripts from Autoptimize: s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js, js/jquery/jquery.js

    Could you help me to solve it? Thanks in advance.

    Plugin Author Optimizing Matters


    waypoints? so have you tried excluding divi-builder/includes/builder/scripts/waypoints.min.js or even bluntly divi-builder/includes/builder/scripts?

    Excellent! It works!


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘jQuery is not defined’ is closed to new replies.