What is the best way to include JavaScript files in Blocs?
Right now, I am manually uploading the minified JS files I need to my server, placing them inside the /js folder. Then in Blocs, I add code similar to the following, with an exact URL to the JS file…
Of course, than means I need to manage those files outside Blocs, but is it better or recommended to instead have Blocs upload those JS files by adding them as Header File Attachments in Page Settings?
The above steps mean Blocs isn’t fully handling things for the user insofar as the user must put the “script src” part into the Header manually. And that means knowing the URL(s) to the individual JS files you included via Header File Attachments.