I am planning to move some of my previously static scripts to assets because I need to pass in some parameters in the future.
These script contain some function definitions which used as onclick handlers further down in the html. This worked perfectly fine when loading them from static/js with a script tag.
But after moving them and building the resource
Am I missing something?
PS: I can assign the functions as click event handlers inside the script, this works fine, I’m wondering, however, why it does not work from inside the html.