ReferenceError jQuery Gravity Forms

  • Hi,

    I am experiencing a ReferenceError: jQuery is not defined coming from the Gravity Forms script jquery.json.min.js. I have already tried forcing Gravity Forms to the footer (and head) using the gform_init_scripts_footer filters, and I tried enqueuing jQuery with priority 1 in the head, but the error persists. Does GeneratePress change how core jQuery or deferred/async scripts are handled that could cause this Gravity Forms asset to execute too early?

    Cheers!

    Edo

  • Hi Edo,

    GeneratePress does not modify the core jQuery scripts or globally add defer or async attributes, so it is unlikely to be the source of this error.

    Do you happen to have any script optimization or performance plugins active on the site? If so, I would check their JavaScript optimization settings first, as they may be altering the script loading behavior.

  • Wow Alvind you’re quick!

    LiteSpeed Cache handles jQuery etc. I should have known better.

    Most sorry for the disturbance. Happy customer for many years. First time asking for support. I wish I had thought it over a bit longer.

    Thank you!

  • No problem, glad to hear that! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.