• Resolved katmac_aus

    (@katmac_aus)


    When I use Breeze for JS minification I get an error with Forminator. It will not load the form because of a query error “contact/:471 Uncaught ReferenceError: jQuery is not defined”. This is referring to where Forminator adds some inline JS to the page that references Jquery. How do I get Breeze to not optmise jquery?

    <script type="text/javascript">

                jQuery(function() {

                    jQuery.ajax({

                        url: 'https://mydomain.com.au/wp-admin/admin-ajax.php',

                        type: "POST",

                        ….
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author owaisalam

    (@owaisalam)

    Thanks for reaching out.
    Could you please share the Breeze settings you have applied?
    Also, kindly confirm whether the error appears in the browser console when you visit the form URL or only after submitting the form.

    Thread Starter katmac_aus

    (@katmac_aus)

    Hi. In file optimisation I had the JS Minify enabled with all other JS settings as their default setting. The ‘contact/:471 Uncaught ReferenceError: jQuery is not defined‘ error appears when viewing the site not logged in (so cached and optmised) on the contact page. The jquery error prevents the forminator form from loading (due to it referencing jquery in its inline scripts). To answer your question before seeing the form, on page load, not on submit form.

    I was able to fix the issue by omitting jquery and forminator JS in the exclude list. But it would be great if there was an easier way to exclude jquery from minifying so i can quickly apply to other sites using forminator + breeze.

    /wp-includes/js/jquery/jquery.min.js
    /wp-includes/js/jquery/jquery-migrate.min.js
    /wp-content/plugins/forminator/assets/js/*

    Plugin Author owaisalam

    (@owaisalam)

    Thank you for your response.

    Based on the steps you shared, it seems that some JavaScript scripts were rendered unexpectedly, which led to the issue. The way you handled it was a smart and effective approach.

    As part of our best practices, we usually recommend excluding specific JS files that may cause such conflicts. Given the vast ecosystem of plugins and themes in WordPress, it can be challenging to ensure compatibility with every setup. That’s why we offer the “Exclude JS” option, allowing users to bypass problematic scripts as needed.

    If you have any additional feedback or suggestions, please feel free to share — we’re always looking to improve.

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

The topic ‘Compatibility with Forminator’ is closed to new replies.