How can I optimize external scripts loaded with asyncLoad?

I’m currently working on optimising on the shopify app and I find lot of third party scripts are loaded using asyncLoad(). Can any one let me know, how to optimise /handle external script loaded in asyncLoad()

I’m Richard Nguyen - CRO Expert at PageFly- Free Landing Page Builder.

Regards your concern. Each shopify theme already have a default asyncLoad function and their location is in {{content_for_header}} so basically it is hard for you to change - or handle that by directly fix that in {{content_for_header}}.

But it is a way to optimize that and required you have knowledge to JS code and liquid. The solution here is re-write that asyncLoad and make your function override the default function, this time you can use that every where you want for optimization any 3rd app script.

But this is not recommended if you don’t have any knowledge about coding. You can hire an expert to do that for you since it is a optimization way to speed up your store

If you feel my answer is helpful, like it or mark it as a solution. Let me know if you have any questions.

Best regards,

Richard | PageFly

1 Like