Javascript short tags – don’t do it.

Yeah, so I just spent about an hour trying to figure out why javascript had stopped working.


<script src="blah.js" type="text/javascript" />

will cause some very strange things to happen. You *must* have a closing tag.


<script src="blah.js" type="text/javascript"></script>

Leave a Reply