• Resolved jarmos

    (@nextgaything)


    Another issue with this plugin is that it adds some 0,5 sec to the checkout page loading time which is about the same as the whole of Woocommerce. Any optimisation work being done?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hey there,

    There are some external calls that need to be made to the Braintree API, and the loading time can vary based on the quality of your connection. I’m not sure much can be done regarding the length of time required for the external API calls, but I can tell you that the JS is minified to reduce the JS file size.

    Could you attach a waterfall view of the Checkout/Cart page?

    Thread Starter jarmos

    (@nextgaything)

    Hi,

    All I see is that the page loading time is about 0,5-1 sec lower when it’s disabled. You can find the screenshot here: Waterfall

    Ah forgot to add that it also calls the Braintree assets on every single page which is not very optimised.

    • This reply was modified 7 years, 9 months ago by jarmos.
    Plugin Contributor SkyVerge

    (@skyverge)

    @nextgaything thanks for the feedback here! Looks like the initial request to Braintree to load the hosted fields via js is taking ~350ms, then the fingerprint as the final request takes ~200ms, both of which are external calls. I’m afraid there’s nothing the plugin can do to optimize this; it depends on your connection and the Braintree API’s response to load the hosted fields.

    However, it does not block anything upon pageload as it’s done asynchronously, so this won’t delay loading the checkout page, and typically completes loading by the time the customer would be scrolling, so it shouldn’t block anything with the checkout page itself at all.

    The only blocker here to checkout loading might be a server-side request if the customer logs in, as saved tokens (payment methods) may need to be checked / fetched. However, this again depends on your server environment, as this external request is a necessity to determine how to display the payment form. I don’t see anything else in that waterfall that indicates slowness from loading on-site resources.

    thanks! -Beka

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slows down checkout page’ is closed to new replies.