Skip to content

Commit

Permalink
Move vendor and polyfill dependencies to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 27, 2017
1 parent e81b4a0 commit b97281d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ function dones_scripts() {
// Application script.
wp_register_script( 'dones-polyfill', add_query_arg( array(
'features' => 'fetch'
), 'https://cdn.polyfill.io/v2/polyfill.min.js' ) );
wp_register_script( 'dones-vendor', get_theme_file_uri( '/dist/vendor.js' ), array(), dones_get_version() );
), 'https://cdn.polyfill.io/v2/polyfill.min.js' ), array(), false, true );
wp_register_script( 'dones-vendor', get_theme_file_uri( '/dist/vendor.js' ), array(), dones_get_version(), true );
wp_enqueue_script( 'dones-app', get_theme_file_uri( '/dist/app.js' ), array( 'dones-polyfill', 'dones-vendor' ), dones_get_version(), true );
wp_localize_script( 'dones-app', 'dones', array(
'siteName' => get_bloginfo( 'name' ),
Expand Down

0 comments on commit b97281d

Please sign in to comment.