I am creating a new site using HTML5 Boilerplate 4.0 and I am having problems with its local jQuery backup code. This code is here:
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.1.min.js"><\/script>')</script> <script src="js/plugins.js"></script> <script src="js/main.js"></script>
I am developing locally while I commented on the CDN line. My problem is that jQuery really loads, but loads after plugins.js and main.js, which leads to undefined errors.
The closest, perhaps the explanation I found, is point # 4 of this previous answer , which suggests that this was expected, but ... above is the most commonly used local backup code for jQuery, and this is H5BP, which is heavily tested. I have to miss something, right?
gilrain
source share