Core Issue:
Google Pay and PayPal scripts significantly slow page load speeds because they load on every page (due to cart buttons being site-wide), not just checkout pages. This creates a major performance bottleneck.
Community Solutions & Findings:
Multiple users analyzed financial reports to determine actual usage of these payment methods
One user found Amazon Pay accounted for only ~9% of transactions vs PayPal’s ~30%
After disabling Google Pay (which handled only 1.5% of transactions), page speed improved from 56 to 67 (~20% improvement)
Another user removed Amazon Pay and gained 0.5-1 second load time improvement on 3G/LTE
Current Limitations:
No native Shopify solution exists to lazy-load these buttons dynamically after page load
Shopify doesn’t control these third-party scripts, which load excessive resources (including A/B testing scripts)
Themes with popup/mini carts require buttons on every page, forcing site-wide script loading
Ongoing Action:
One user opened a support ticket with PayPal Merchant Support regarding duplicate PayPal checkout scripts loading site-wide and will update the thread with responses.
Summarized with AI on November 16.
AI used: claude-sonnet-4-5-20250929.
I’m working on improving the page speed for a store and noticed that one of the biggest bottlenecks on load are the google pay and PayPal scripts (which load in on every page since the buttons are in the cart).
The buttons get loaded in through {{ content_for_additional_checkout_buttons }} in Liquid. Is there a recommended way to load these buttons in dynamically (so it can be done after the whole page has been loaded)?
I saw this same issue. We had amazon pay and paypal enabled. Amazon would load a bunch of other resources as well, a ridiculous amount of stuff just to be able to add a button that transmits some cart details. And as you say it loads on EVERY page. Technically it should only be needed in the cart but they have to account for the fact a theme could have a popup cart or mini cart that is on every page with that button on it. It does add quite a hog to the page.
What we did is went into reports and looked up financial reports, there’s a way there to see which types of checkouts produces what dollars, and then you can decide whether it’s really worth having those extra payment methods enabled. For us amazon turned out to be no more than like 9% while paypal was like 30%, so we ditched amazon and gained 1/2 to 1 second load time on 1.5mbis/dsl/3G.
It’s unfortunate that these scripts are so hefty given the tiny amount of work they should be doing. Amazon for example even loads some stupid A/B testing script. It’s possible that shopify doesn’t have control over what scripts and resources are loaded by these plugins.
We actually ended up doing a similar thing, went through our reports and are now in the process of disabling Google Pay.
As you said, It’s a shame that there isn’t another solution at the moment since it loads in on every page through the basket.
Same issue discovered this morning and as Paypal is responsible for a fair share or sales, we couldn’t just switch it off (as much as I wanted to to fix the issue).
To be pro-active as Shopify are unable to assist at all with this matter being a 3rd-party, I have created a support ticket with Paypal Merchant Support regarding the duplicate Paypal Script (checkout.min.js) loading site-wide.