jquery - Enclosing javascript code in comment tags "<!-- //-->" -
this question has reply here:
should utilize html comments capsulate javascript code blocks? 2 answersmany years ago developed habit of enclosing javascript in files with
<!-- code here //--> not sure why.. other it's hiding (or not parsing) code old browsers, right?
do need utilize still? need in js pages other script code itself? (i'm using jquery too)
the html comment intended hide javascript ancient browsers didn't understand <script> element , instead render contents on page. html comments, ie. <!-- -->, no longer needed. can read more here
javascript jquery tags comments cdata
No comments:
Post a Comment