From b97281ddf3cdea52baf1b207c2a7c1afc3c88cdf Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 26 May 2017 20:20:31 -0400 Subject: [PATCH] Move vendor and polyfill dependencies to footer --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 97e3ebe81..34e63cd55 100644 --- a/functions.php +++ b/functions.php @@ -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' ),