PageSpeed Insights Problems with Afterpay square-marketplace.js

Hi guys,

I use Afterpay via the WooCommerce plugin. The plugin started introducing Square JS around 6 months ago.

Since this introduction I have noticed we are being flagged by PageSpeed Insights for third party JS blocking:

I raised a ticket at https://wordpress.org/support/topic/square-marketplace-js/ which has been ignored by Square developers for 3 months.

Can someone at Square please take a look at this as retailers are being penalised for being Square merchants.

Thanks,
Jason

The team is looking into this. :slightly_smiling_face:

1 Like

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.

1 Like

Any progress guys? This was raised in April.

This was addressed in this post by the Afterpay team. :slightly_smiling_face:

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.

Thanks,
Jason