Sanjay Sharma

Sanjay Sharma

  • 1.3k
  • 413
  • 27.4k

Js + css files include called request

Nov 14 2019 3:31 AM
Hi I have simple code like this in .aspx
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title> Login</title>
<script type="text/javascript" src="validation.js" language="javascript"></script>
</head>
<body>
<p>
Nothing is here.
</p>
</body>
</html>
 
when I visit the page I can see page load get calls for js include.
http://localhost:60915/Login.aspx
http://localhost:60915/Login.aspx?ReturnUrl=/validation.js
http://localhost:60915/Login.aspx?ReturnUrl=/favicon.ico
 
if I include another .js then it will add one more request. 
 
 

Answers (1)