Nov 16, 2012 at 8:18 AM
Edited Nov 16, 2012 at 8:19 AM
I don't know if Ross has filed a bug for this, but I'd like to also say that I have experienced a similar issue.
I am using Orchard 1.6, and my theme's layout.cshtml uses 4 JS files. The first one to be included is jQuery, as the rest of the scripts rely on it. I started to get JS errors on my pages, and traced it down to the jQuery library being included on the page
after the rest of the scripts. I appended .AtHead() to the Script.Require() for jQuery as a way to force that script to appear in the head whilst all the rest would appear at the foot of the page.
Interestingly, when I removed .AtHead(), the scripts were included in the correct order again. I couldn't reproduce the issue (and still can't) so I didn't file a bug at the time.
Here are my Include/Require statements: