Manual Script Tag for faster loading speed

If you want to improve the loading speed of the upload widget you can install the script tag manually in your theme.

In the app, navigate to the Settings tab. 

Toggle "Manually add script tag". 

Copy the Script HTML content. 

ext you have to edit your theme code to paste the copied script tag. 

This can be done in the Shopify Admin theme editor, navigate to   Online Store > Themes,  [More actions] > Edit Code.

Chose one of the following locations:

  • layout/theme.liquid  (loaded on every page)
  • templates/product.liquid  (loaded only on product pages

For "layout/theme.liquid" paste the script tag before the closing of the </head>:

....
  <script src="https://assets.cloudlift.app/api/assets/upload.js?shop={{ shop.permanent_domain }}"></script>
</head>

For "templates/product.liquid" paste the script at the beginning of the file. 

Save the theme and test that the widget is showing on your desired placements.

If you need further assistance, please send us a request and we will be happy to help you out.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.