JavaScript clean up

- Modernizr is now enqueued and included after stylesheets

- jQuery is no longer hardcoded since WP now supports protocol-relative
URLs

- jQuery fallback output is handled by a new function in lib/scripts.php
(the method is still the same one from HTML5 Boilerplate)
This commit is contained in:
Ben Word
2013-02-04 22:16:31 -06:00
parent 5b9b7c64f1
commit 56f25ff00a
4 changed files with 30 additions and 12 deletions

View File

@@ -87,8 +87,8 @@ If you're using LESS, make sure you compile the files to the proper locations:
JavaScript is loaded in the following order:
1. `/theme/assets/js/vendor/modernizr-2.6.2.min.js` (in `head.php`)
2. `jquery-1.9.0.min.js` via Google CDN with local fallback (in `head.php`)
1. `/theme/assets/js/vendor/modernizr-2.6.2.min.js`
2. `jquery-1.9.0.min.js` via Google CDN with local fallback
3. `/theme/assets/js/plugins.js`
4. `/theme/assets/js/main.js`