includes/cs-bootstrap-scripts-and-styles.php
/**
 * Scripts and stylesheets
 *
 * Enqueue stylesheets in the following order:
 * 1. /theme/assets/css/default.css
 *
 * Enqueue scripts in the following order:
 * 1. jquery-1.11.1.min.js via Google CDN
 * 2. /theme/assets/js/vendor/modernizr.min.js
 * 3. /theme/assets/js/scripts.js
 *
 * Google Analytics is loaded after enqueued scripts if:
 * - An ID has been defined in config.php
 * - You're not logged in as an administrator
 */
Scripts and stylesheets
Enqueue stylesheets in the following order:
1.

Enqueue scripts in the following order:
1. jquery-1.11.1.min.js via Google CDN
2.

Google Analytics is loaded after enqueued scripts if:
- An ID has been defined in config.php
- You're not logged in as an administrator
Scripts and stylesheets Enqueue stylesheets in the following order : 1 . Enqueue scripts in the following order : 1 . jquery - 1 . 11 . 1 . min . js via Google CDN 2 . Google Analytics is loaded after enqueued scripts if : - An ID has been defined in config . php - You ' re not logged in as an administrator
function cs_bootstrap_scripts() {
  if (WP_ENV === 'development') {
    $assets = array(
      'css'       => '/assets/css/default.css',
      'js'        => '/assets/js/scripts.js',
      'modernizr' => '/assets/vendor/modernizr/modernizr.js',
      'jquery'    => '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js'
    );
  } else {
    $get_assets = file_get_contents(get_template_directory() . '/assets/manifest.json');
    $assets     = json_decode($get_assets, true);
    $assets     = array(
      'css'       => '/assets/css/default.min.css?' . $assets['assets/css/default.min.css']['hash'],
      'js'        => '/assets/js/scripts.min.js?' . $assets['assets/js/scripts.min.js']['hash'],
      'modernizr' => '/assets/js/vendor/modernizr.min.js',
      'jquery'    => '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'
    );
  }
  wp_enqueue_style('cs-bootstrap_css', get_template_directory_uri() . $assets['css'], false, null);
  if (!is_admin() && current_theme_supports('jquery-cdn')) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', $assets['jquery'], array(), null, true);
    add_filter('script_loader_src', 'cs_bootstrap_jquery_local_fallback', 10, 2);
  }
  if (is_single() && comments_open() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
  }
  wp_enqueue_script('modernizr', get_template_directory_uri() . $assets['modernizr'], array(), null, true);
  wp_enqueue_script('jquery');
  wp_enqueue_script('cs-bootstrap_js', get_template_directory_uri() . $assets['js'], array(), null, true);
}
function cs_bootstrap_scripts ( ) { if ( WP_ENV === 'development' ) { $ assets = array ( 'css' => '/assets/css/default.css' , 'js' => '/assets/js/scripts.js' , 'modernizr' => '/assets/vendor/modernizr/modernizr.js' , 'jquery' => '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js' ) ; } else { $ get_assets = file_get_contents ( get_template_directory ( ) . '/assets/manifest.json' ) ; $ assets = json_decode ( $ get_assets , true ) ; $ assets = array ( 'css' => '/assets/css/default.min.css?' . $ assets [ 'assets/css/default.min.css' ] [ 'hash' ] , 'js' => '/assets/js/scripts.min.js?' . $ assets [ 'assets/js/scripts.min.js' ] [ 'hash' ] , 'modernizr' => '/assets/js/vendor/modernizr.min.js' , 'jquery' => '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' ) ; } wp_enqueue_style ( 'cs-bootstrap_css' , get_template_directory_uri ( ) . $ assets [ 'css' ] , false , null ) ; if ( ! is_admin ( ) && current_theme_supports ( 'jquery-cdn' ) ) { wp_deregister_script ( 'jquery' ) ; wp_register_script ( 'jquery' , $ assets [ 'jquery' ] , array ( ) , null , true ) ; add_filter ( 'script_loader_src' , 'cs_bootstrap_jquery_local_fallback' , 10 , 2 ) ; } if ( is_single ( ) && comments_open ( ) && get_option ( 'thread_comments' ) ) { wp_enqueue_script ( 'comment-reply' ) ; } wp_enqueue_script ( 'modernizr' , get_template_directory_uri ( ) . $ assets [ 'modernizr' ] , array ( ) , null , true ) ; wp_enqueue_script ( 'jquery' ) ; wp_enqueue_script ( 'cs-bootstrap_js' , get_template_directory_uri ( ) . $ assets [ 'js' ] , array ( ) , null , true ) ; }
Scripts and stylesheets
 Enqueue stylesheets in the following order:
 1.
Scripts and stylesheets Enqueue stylesheets in the following order : 1 .
/**
   * The build task in Grunt renames production assets with a hash
   * Read the asset names from assets-manifest.json
   */ /**
   * jQuery is loaded using the same method from HTML5 Boilerplate:
   * Grab Google CDN's latest jQuery with a protocol relative URL; fallback to local if offline
   * It's kept in the header instead of footer to avoid conflicts with plugins.
   */