One asset is making up for 56% unused JS on my website

ferero18
Excursionist
30 0 4

121222.png

These few scripts you see above /shopifycloud/payment-sheet/assets/latest with different endings are blocking other important components like images, etc to load - other than that it's quite a lot of unused JS.

 

The problem here is that the defer/async function does not work on those scripts, so I assume they have some kind of default code written into it that disobeys the defer functions and I assume it's something payment-related based on the URL name. I've tried using:

 

<script defer src="link"> or /> or ></script>

and

<script src="link" defer></script>

and

<script src="{{ 'spb.js' | asset_url }}" defer="defer"></script>

 

Any ideas on how can I take care of these unused JS you see above? 

I'm using Sense theme btw

 

Reply 1 (1)

ferero18
Excursionist
30 0 4

bump