I saw this in code. It blew my mind.
<% if (false) { %>
<script type="text/javascript" src="~/Scripts/jquery-1.3.2.js"></script>
<% } %>
This seems so patently illogical that it must be intentional. I can only assume that somehow this “came up”, and somebody inserted this as a work-around. There are, of course, no comments.
Why would someone do this?
That’s a trick to get Visual Studio to include the javascript Intellisense for jQuery without actually emitting the script to callers.
Here is an example from Scott Gu explaining it.