February 22, 2010 1 Comment
Publish Date : 02/22/2010
Version : 1.0
Author : Nasser Hajloo
Author Mail : firstname.lastname@example.org
Copyright (c) 2010 Nasser Hajloo.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.
<!--#include virtual="JS.htm" -->
The above code increase page size and end-user may got crazy. So there should be a good solution to reduce the page size. Asp.net use another approach to use scripts.
In Asp.net Pages Java script codes has a JS file template. And you can write your codes inside it, Then you can ipmort it in your Asp.net page and when Asp.net page downloads to users computer, JS files are downloading in users computer Temp directory.
This approach will reduce page size and let Asp.net page load much faster than classic Asp pages. So to do this, all you need is addresssing JS file in your Asp.net Pages.