|
-
May 20th, 2010, 11:21 AM
#1
Thread Starter
Hyperactive Member
Loading JavaScript files - Best Practices.
I guess I should post this in the Asp.Net section, but well....let's see
I got a list of JavaScript files I need to load on forms that validate user input.
Of course I can be "lazy" and just add this once in my Master Page, but as these will not be used on all pages, that's not good.
So right now I have this set of scripts at the bottom of each for that deal with user input, and I figured there could be a better way to deal with this. (Might just look further into combres, but then, I never heard of it)
Code:
<script type="text/javascript" src="<%= Url.JavaScript("validationEngine/jquery.validationEngine-en") %>"></script>
<script type="text/javascript" src="<%= Url.JavaScript("validationEngine/jquery.validationEngine") %>"></script>
<script type="text/javascript" src="<%= Url.JavaScript("jquery.validate") %>"></script>
<script type="text/javascript" src="<%= Url.JavaScript("MicrosoftMvcJQueryValidation") %>"></script>
<script type="text/javascript" src="<%= Url.JavaScript("formfunctions") %>"></script>
Any advice someone learned by dealing with this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|