diff options
author | Antoine Beaupré <anarcat@debian.org> | 2017-11-06 14:15:22 -0500 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-02-03 17:01:55 +0000 |
commit | d16e34c736676256b7cd3ea12797313dc1332fc3 (patch) | |
tree | 8221054fb81e29b1dd853ad2e2613b784a278e0b /cpan | |
parent | aa063aeb337271577fc426dc32b26c1ca87807e5 (diff) | |
download | ikiwiki-d16e34c736676256b7cd3ea12797313dc1332fc3.tar ikiwiki-d16e34c736676256b7cd3ea12797313dc1332fc3.tar.gz |
append javascript after CSS
Javascript resources should be presented to browsers after CSS, and
"after the fold" (ATF) according to the best practices:
https://developers.google.com/speed/docs/insights/mobile#PutStylesBeforeScripts
This change allows the browser to download Javascript files in
parallel, by including Javascript on the *closing* </body> tag instead
of the opening tag.
We also improve the regex to tolerate spaces before the body tag, as
some templates have (proper) indentation for the tag.
Diffstat (limited to 'cpan')
0 files changed, 0 insertions, 0 deletions