So, I have a file foo.jsthat contains the following:
$( document ).ready(function() {
alert("hello world");
});
and if I put it in the web / static / js folder, then it will not be executed, but if I put it in the web / static / vendor folder, then I wonder why it doesn’t work from the js folder? And where should I put js files? The vendor folder does not seem like the right place ...
source
share