mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
just async load one js file with jquery included & defer picturefill
This commit is contained in:
parent
9c9fb9c8f2
commit
f1bd4ddbba
@ -100,17 +100,13 @@ module.exports = function(grunt){
|
|||||||
options: {
|
options: {
|
||||||
report: 'min'
|
report: 'min'
|
||||||
},
|
},
|
||||||
jquery: {
|
|
||||||
files: {
|
|
||||||
'<%= config.site %>/<%= config.assets.js %>/jquery.min.js': 'bower_components/jquery/dist/jquery.js'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
production: {
|
production: {
|
||||||
files: {
|
files: {
|
||||||
'<%= config.site %>/<%= config.assets.js %>/picturefill.min.js': [
|
'<%= config.site %>/<%= config.assets.js %>/picturefill.min.js': [
|
||||||
'bower_components/picturefill/dist/picturefill.js'
|
'bower_components/picturefill/dist/picturefill.js'
|
||||||
],
|
],
|
||||||
'<%= config.site %>/<%= config.assets.js %>/kremalicious3.min.js': [
|
'<%= config.site %>/<%= config.assets.js %>/kremalicious3.min.js': [
|
||||||
|
'bower_components/jquery/dist/jquery.js',
|
||||||
'bower_components/infinitescroll/index.js',
|
'bower_components/infinitescroll/index.js',
|
||||||
'bower_components/masonry/index.js',
|
'bower_components/masonry/index.js',
|
||||||
'bower_components/imagesloaded/imagesloaded.js',
|
'bower_components/imagesloaded/imagesloaded.js',
|
||||||
|
@ -23,9 +23,7 @@
|
|||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
<script async src="/assets/js/kremalicious3.min.js"></script>
|
||||||
<script>window.jQuery || document.write('<script src="/assets/js/jquery.min.js"><\/script>')</script>
|
|
||||||
<script src="/assets/js/kremalicious3.min.js"></script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Picturefill -->
|
<!-- Picturefill -->
|
||||||
<script src="/assets/js/picturefill.min.js" async></script>
|
<script src="/assets/js/picturefill.min.js" defer></script>
|
||||||
|
|
||||||
<!-- TypeKit -->
|
<!-- TypeKit -->
|
||||||
<script data-cfasync="false" src="//use.typekit.com/msu4qap.js"></script>
|
<script data-cfasync="false" src="//use.typekit.com/msu4qap.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user