Hi, @xyboox Thank you for the question. Hey, @Indra@miljkovicmisa, do you have any JavaScript wisdom you can share? Or thoughts on how @xyboox might approach this challenge?
Design manager file URLs update each time you publish them so there’s no set path you can use. You’d either need to:
Add your file to the page so you can use it’s public URL
OR upload your file to the file manager and use that URL
OR set a global variable in a <script> in your HTML template so that you can use the get_asset_url() HubL function (because HubL isn’t usuable inside javascript files).