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:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user