RegisterScript doesn't register the scripts in the correct order


i'm using registerscripts and this is the output of the scripts
<script src="/scripts/UComment/jquery.metadata.js?cdv=1" type="text/javascript"></script>
<script src="/scripts/UComment/jquery.validate.min.js?cdv=1" type="text/javascript"></script>
<script src="/umbraco_client/ui/jquery.js?cdv=1" type="text/javascript"></script>
<script src="/scripts/UComment/jquery.form.js?cdv=1" type="text/javascript"></script>
as you can see the jquery script is not first as it's supposed to be.


darrenferguson wrote Mar 26, 2011 at 12:38 PM

The order isn't significant - why do you think it is?

parnar wrote Mar 26, 2011 at 2:10 PM

because jquery needs to be first, or else the other scripts that depend on jquery wont work.

darrenferguson wrote Mar 26, 2011 at 3:51 PM

Ok - Understand what you mean. I'd add them manually for now - though for some reason with me it registers them in the order specified. Which version of Umbraco are you using?

parnar wrote Mar 26, 2011 at 4:27 PM

added the ucomment on a clean umbraco and i got javascript errors, now i fixed it by adding manually.

wrote Feb 13, 2013 at 3:54 AM