• Resolved nicholas384775

    (@nicholas384775)


    I’m using pagespeed to optimise speed and found that the Paypal button on the product page slows down the page a lot, causing about 10 points reduction in pagespeed score.

    Also, some paypal code is loaded on all pages, including blog posts where I don’t see any sign of Paypal. I guess this is not related to the buttons but to the paypal plugin itself.

    Is it possible to improve this ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @nicholas384775 – sorry to hear you’ve having some issues with site speed!

    If you’re still seeing the same issue, can you see if the same occurs when only WooCommerce/WooCommerce PayPal Checkout are active? What about while also using a default theme (such as Storefront)?

    Thank you,
    Joey

    Thread Starter nicholas384775

    (@nicholas384775)

    Thanks for your reply. This is not related to theme as it’s the connections to Paypal that slows down the loading.

    Would it be possible to host the paypal js and css files locally, so that It doesn’t have to load from Paypal on every product page, slowing down the site?

    We can’t minify Paypal css and js when they are hosted at paypal, so getting this from Pagespeed:
    /api/checkout.js(www.paypalobjects.com) 232 KB Potential Savings 64 KB

    And this:
    Reduce the impact of third-party code
    Third-Party
    PayPal 551 KB Main-Thread Blocking Time 503 ms

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @nicholas384775

    Thanks for this!

    I’ve had a look and there are two open Issues related to this:

    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/581
    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/526

    I believe there will be work done for the 2.0 release to help with this.

    To answer your question – no, it isn’t possible to host those files locally.

    I hope this helps, have a great day!

    Thanks,

    • This reply was modified 4 years, 11 months ago by dougaitken.
    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @nicholas384775

    We’ve not heard back from you and I think my reply fully covers your query so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PayPal buttons on Product page slows down site’ is closed to new replies.