Page 1 of 1

Why isn't my JS file being referenced and used?

Posted: Mon Oct 21, 2013 4:14 am
by simonmlewis
I'm moving all my main javascript to one external file.
The file is there.
Yet when I remove the full script from one of the include files, and the reference to it is in the index.php file, the javascript doesn't function.

If I put the script directly into the include page, it does work.

Re: Why isn't my JS file being referenced and used?

Posted: Mon Oct 21, 2013 5:06 am
by simonmlewis
Bingo - after checking other external JS files, I didn't realised because it is in a JS file, you don't tag it with <script></script>.