I too have noticed this code slowing multiple of our ecommerce sites. Sites that accept Afterpay via Stripe load much quicker and are not delayed. Let’s hope for a resolution soon, now that the right people are aware of the issue.
Sorry Bryan, it was not. Scott simply explained the current broken situation.
I followed up with a request to keep the Support thread open until a fix is provided. One has not been.
As of right now, Pagespeed suggests Square are responsible for injecting 46kb of unused JS into every product page on every website using the plugin. square-marketplace.js is responsible for 1,261 ms of JS evaluation on every page load.
Please treat the issue and the performance of your code seriously. You’re scattering it all over your customers eCommerce stores and dragging down their PageSpeed scores relative to other retailers who do not use Afterpay.