cornerstone icon indicating copy to clipboard operation
cornerstone copied to clipboard

Unnecessary render-blocking resources

Open calscables opened this issue 6 years ago • 2 comments

Please inform me if the theme doesn't handle how the checkout_sdk is loaded

Currently, according to Google PageSpeed Insights, rendering is being blocked by the following resource (see this link for full Google PageSpeed Insight results):

https://cdn11.bigcommerce.com/shared/bower/checkout-sdk/dist/checkout-button.umd-{random-hash}.js

If the checkout-sdk job is to perform checkout tasks, then it doesn't need to be on every page.

This render blocking resource appears on every page and is the biggest cause of dampering Google PageSpeed results and possibility affecting real word page load speed.

A potential of 1,830ms of page speed loading time can be saved on mobile devices if fixed.

calscables avatar Feb 04 '20 15:02 calscables

Just discovered this resource is used by the theme's "Add To Cart Preview Modal".

Anyway to optionally disable this?

Thanks,

calscables avatar Feb 04 '20 18:02 calscables

These scripts are automatically injected with the {{{head.scripts}}}. Server controls that so I don't think there's a way to get rid of them.

wwwdepot avatar Feb 11 '20 21:02 wwwdepot