Adding new JS to theme

All javascript (and css) is going to be compiled into one js (and css) file. Therefore you won’t see your script as a seperate file in the source code.

Just add a

console.log('loaded');

to your script, to see in dev tools if it was loaded.

1 „Gefällt mir“