9

I'm reviewing some html produced by an outside shop.

They use comments inside their external script loading tags - so far as i'm aware this was only useful for very old javascript unaware browsers is there any modern function for this or is it redundant?

<script type="text/javascript" src="path/to/file.js"><!--//--></script>  
MJWadmin
  • 275
  • 1
  • 7

1 Answers1

7

No, the habit has not had any grounds for a long time. It was meant to deal with browsers like Netscape 1. Check out e.g. these history notes: http://javascript.about.com/library/blhtmcmt.htm

Jukka K. Korpela
  • 195,524
  • 37
  • 270
  • 390