diff --git a/assets/manifest.json b/assets/manifest.json index a3b484569e..de917dc510 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -19,9 +19,6 @@ }, "jquery.js": { "bower": ["jquery"] - }, - "modernizr.js": { - "bower": ["modernizr"] } }, "config": { diff --git a/bower.json b/bower.json index 55d61fe64f..d62cc08813 100644 --- a/bower.json +++ b/bower.json @@ -7,13 +7,9 @@ "license": "MIT", "private": true, "dependencies": { - "modernizr": "2.8.2", "bootstrap-sass-official": "3.3.5" }, "overrides": { - "modernizr": { - "main": "./modernizr.js" - }, "bootstrap-sass-official": { "main": [ "./assets/stylesheets/_bootstrap.scss", diff --git a/lib/assets.php b/lib/assets.php index 4f1fea5e43..f16c1b4d45 100644 --- a/lib/assets.php +++ b/lib/assets.php @@ -4,13 +4,6 @@ /** * Scripts and stylesheets - * - * Enqueue stylesheets in the following order: - * 1. /theme/dist/styles/main.css - * - * Enqueue scripts in the following order: - * 1. /theme/dist/scripts/modernizr.js - * 2. /theme/dist/scripts/main.js */ class JsonManifest { @@ -72,7 +65,6 @@ function assets() { wp_enqueue_script('comment-reply'); } - wp_enqueue_script('modernizr', asset_path('scripts/modernizr.js'), [], null, true); wp_enqueue_script('sage_js', asset_path('scripts/main.js'), ['jquery'], null, true); } add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\assets', 100);