• Resolved rico2806

    (@rico2806)


    Hello, first of all: Great plugin!

    I have one small issue. I want to use the “aggregate js-files” function on my checkout page. But it blocks the stripe credit card fields, so they are not shown.

    Which .js do i need to exclude from the “aggregate js-files” function, so that the fields will show up?

    Thank you in advance!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I recommend to simply uncheck the “also optimize cart/checkout” option.

    hope this helps,
    frank

    Thread Starter rico2806

    (@rico2806)

    Hey Frank, thank you for answering so fast. This does help, but that means i wouldn’t be able to use the “aggregate js-files” function on the checkout page.

    Since that function helps so much with loading speed, i would love to use it.

    Is there any way of exluding javascript to make it work? Or anything else that would fix it?

    Best regards

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Pretty sure you can get things working by excluding just the right JS, but I don’t know what that would be to be honest 🙂

    Given the fragility of checkout pages and given the business impact if checkout does not work I think not optimizing that in fact is a good option 🙂

    Thread Starter rico2806

    (@rico2806)

    You are right but i am currently splittesting a checkout which is on the sales page. (For better conversions ;)…) Since that page is so long, (and it is the checkout page too) it would be awesome to get it to work :D.

    If the splittest is going well, i would keep the checkout on my salespage permanently. That’s truth of me being heavily interested in getting “aggregate js-files” work on the “checkout page”, without blocking the stripe credit cartd checkout fields.

    Please let me know when you have an idea to make this work 😀

    • This reply was modified 5 years, 9 months ago by rico2806.
    • This reply was modified 5 years, 9 months ago by rico2806.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    then you’ll have to dive in and do some trial & error exclusions I’m afraid 🙂

    Thread Starter rico2806

    (@rico2806)

    I tried so many but none of them fixed the problem.. I’ll keep trying.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    try with the “minify excluded CSS/ JS” unticked as well maybe and watch the browser console for JS errors, they can be helpful.

    Thread Starter rico2806

    (@rico2806)

    Doing that changes something.. The fields become visible but you can’t enter anything.. I will need to find the right .js to make it work. Having no luck so far..

    Thread Starter rico2806

    (@rico2806)

    Could the problem be that the stripe javascript is loaded externally from js.stripe.com, which leads to stripe.js not actually beeing exluded when i want to exclude it from the “aggregate js files” function? I am sure if i exlude stripe.js it should be working but it doesn’t. I don’t know much about programming but i think that could be the reason. What do you think, Frank? Any ideas on that?

    • This reply was modified 5 years, 9 months ago by rico2806.
    • This reply was modified 5 years, 9 months ago by rico2806.
    • This reply was modified 5 years, 9 months ago by rico2806.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO does not optimize external files, but maybe you have inline JS that also refers to Stripe?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news on this rico2806 ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got resolved rico2806 ? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

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

The topic ‘Autoptimize blocks Stripe Checkout Fields’ is closed to new replies.