In FF and all, my javascript works fine. But in Chrome it gives this message:
Resource interpreted as script but transferred with MIME type text/plai
Weird issue, but this helped me to solve my issue. Sometimes even the easiest things are hard to figure out...
Instead of using
/js/main.css
in my script-tag I used js/main.css
YES, it did actually make a difference. I'm sitting on WAMP / Windows and I didn't have a vhost but just used localhost/
If I reference to /js/main.css
then I reference to localhost/css/main.css
and not to localhost/
When you think of it, it's quite obvious but if someone stumbles upon this I thought I would share this answer.