Added preconnect + dns-prefetch for Google Analytics (#1487)

According to Lighthouse this will save 260ms
This commit is contained in:
Benjamin Staneck
2020-03-06 16:49:13 +01:00
committed by GitHub
parent 7840e207f9
commit 2c56acbf14

View File

@@ -22,6 +22,8 @@
<!-- Google Analytics integration -->
{% set analytics = config.google_analytics %}
<link rel="preconnect dns-prefetch" href="https://www.google-analytics.com">
<script type="application/javascript">
window.ga = window.ga || function() {
(ga.q = ga.q || []).push(arguments)