Combine js not only for head
-
Emre,
I really liked your feature to combine multiple js files into one or few. However one of my other plugins moved most of the scripts from the head to make them non-blocking the render. Page renders faster, but now I have 29 calls for different js files. Is there a way to combine js files in head (one group) and at the end of the page (the other group)?
I think that would help also to improve the experience.For example my page https://paleosmak.pl/paleo-styl/higiena/mycie-wlosow-bez-szamponu/ has at the end:
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-content/plugins/akismet/_inc/form.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js’></script>
<script type=’text/javascript’>try{jQuery.noConflict();}catch(e){};</script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-includes/js/jquery/jquery-migrate.min.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-content/plugins/email-subscription/assets/email-subscription.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-content/plugins/speed-booster-pack/js/sbp-lazy-load.min.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-includes/js/comment-reply.min.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-content/themes/twentyfourteen/js/functions.js’ defer=’defer’></script>
<script type=’text/javascript’ src=’https://paleosmak.pl/wp-content/plugins/soslider-social-slider/js/jquery.soslider.min.js’ defer=’defer’></script>And I think most of them could be combined.
The other thing is the HTML minifier, when I run Google Insight against the above page I get:
Minify HTML for the following resources to reduce their size by 980B (3% reduction).
Minifying https://paleosmak.pl/…-styl/higiena/mycie-wlosow-bez-szamponu/ could save 980B (3% reduction) after compression.
Thanks a lot for your time, I have already voted ??
- The topic ‘Combine js not only for head’ is closed to new replies.