diff --git a/_includes/body-landing.html b/_includes/body-landing.html index 492781f433..e2bddb18b7 100644 --- a/_includes/body-landing.html +++ b/_includes/body-landing.html @@ -468,10 +468,6 @@ - - - - - - - - - - {%- include analytics/polldaddy.html -%} diff --git a/_includes/head.html b/_includes/head.html index bc01ae75ca..f2aae70083 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -44,6 +44,27 @@ + {%- comment -%} + We put these scripts in the head section, but use "defer" loading to allow the + browser to start loading them as soon as possible. Actual execution of deferred + scripts happens once the HTML is fully parsed. + see https://flaviocopes.com/javascript-async-defer/#with-defer-in-the-head + {%- endcomment -%} + {%- if page.landing == true -%} + + + + + + {%- else -%} + + + + + + + {%- endif -%} + {%- comment -%} preload fonts: https://www.freecodecamp.org/news/web-fonts-in-2018-f191a48367e8/ we only preload the "woff2" variants, as older formats (woff, eot) are only used