Support » Plugin: Fast Velocity Minify » Error for WP E-Signature

  • Resolved Chris Lemmer

    (@jchrislemmer)


    Hi there,

    When enabling JS compression, the WP E-Signature by Approve Me (https://www.approveme.com/) signing page breaks completely.

    It gives a lot of jQuery undefined errors.

    I have also ticked: Skip deferring the jQuery library [ Will fix “undefined jQuery” errors on the Google Chrome console log ]

    However, still no luck. Still gives many errors. Please see if you can also find this issue?

    Thanks
    Chris

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi there,

    a) When you look at the source code on chrome, is jquery being shows independently, when you tick the “Skip deferring the jQuery library”?

    b) Take a look at the logs (view details) on the status page. Is there any jQuery file being merged together on any of the generated JS files?

    Sometimes, plugins enqueue different jQuery versions (so you may have more than one) and then some plugins use jquery by using jQuery( document ).ready( or $( document ).ready( … however, some enqueued jquery versions (including the default one, enqueued by wordpress) may not recognize one or the other format, thus showing undefined errors.

    Solution is to add those jquery files to the ignore list.

    c) Are the console log undefined errors, relative to jquery or some other script? Sometimes, some plugins have dependencies. When we merge them with others, they may not be available on the page, if the inline js code is using a function from a js file, that hasn’t been loaded yet.

    Solution again. is to find out which js files has that function that is undefined (status page, logs) and then add it to the ignore list.

    Unfortunately, there’s no simple way to concatenate all js files together sometimes, because authors end up reusing names and variables, as well as functions. When merged, those overwrite previous code, so they need to be excluded.

    Grab the list from the logs page, add them all to the ignore list (use shorter paths and script names) https://wordpress.org/plugins/fast-velocity-minify/faq/
    Then delete one by one until you start seeing the undefined error again… then you know, which one needs to be on the ignore list.

Viewing 1 replies (of 1 total)
  • The topic ‘Error for WP E-Signature’ is closed to new replies.