Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Alexis,

    Hmmm, sounds like a strange one.
    Could you please send an admin login to support(at)slicedinvoices.com and I will login and take a look at what is causing the issue.

    Thanks

    Thread Starter galaxytoast

    (@galaxytoast)

    Thank you! I have sent the information to your email.

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Resolved.

    This was an issue with the Autoptimize plugin which has now been fixed.

    This was an issue with the Autoptimize plugin which has now been fixed.

    curious; did you exclude specific JS from optimization to fix this?

    frank

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Frank,

    It was forcing jQuery to load in the footer, but we need it to load in the head.

    Cheers

    so you excluded jquery.js from optimization or checked “force JS in head”?

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Frank,

    I have added the filter below which will check for a quote or an invoice an then bypass the optimization (as you know).

    There is very little CSS and JS on these pages anyway so optimizing them isn’t really required and the benefits of optimizing would be less than negligible.

    function sliced_filter_for_autoptimize() {
      if ( sliced_get_the_type() ) {
        return true;
      } else {
        return false;
      }
    }
    add_filter('autoptimize_filter_noptimize','sliced_filter_for_autoptimize',10,0);

    great work! ??

    pro-tip; you can also use filters to specifically disable CSS-, HTML- or in this case JS-optimization (autoptimize_filter_js_noptimize) ??

    frank

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Paypal portal not showing on "Payments" page’ is closed to new replies.