From f1bd4ddbba5726148f1faa83055dc125a5ce3395 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jul 2014 22:07:37 +0200 Subject: [PATCH] just async load one js file with jquery included & defer picturefill --- Gruntfile.js | 6 +----- _src/_includes/footer.html | 4 +--- _src/_includes/head.html | 4 ++-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8d1da992..87d44f81 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -100,17 +100,13 @@ module.exports = function(grunt){ options: { report: 'min' }, - jquery: { - files: { - '<%= config.site %>/<%= config.assets.js %>/jquery.min.js': 'bower_components/jquery/dist/jquery.js' - } - }, production: { files: { '<%= config.site %>/<%= config.assets.js %>/picturefill.min.js': [ 'bower_components/picturefill/dist/picturefill.js' ], '<%= config.site %>/<%= config.assets.js %>/kremalicious3.min.js': [ + 'bower_components/jquery/dist/jquery.js', 'bower_components/infinitescroll/index.js', 'bower_components/masonry/index.js', 'bower_components/imagesloaded/imagesloaded.js', diff --git a/_src/_includes/footer.html b/_src/_includes/footer.html index 7b653059..81b4d557 100644 --- a/_src/_includes/footer.html +++ b/_src/_includes/footer.html @@ -23,9 +23,7 @@ - - - + + +