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:
@@ -8,11 +8,6 @@
|
||||
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/modernizr-2.6.2.min.js"></script>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
|
||||
|
||||
<?php wp_head(); ?>
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/feed/">
|
||||
|
||||
Reference in New Issue
Block a user