mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added preconnect + dns-prefetch for Google Analytics (#1487)
According to Lighthouse this will save 260ms
This commit is contained in:
parent
7840e207f9
commit
2c56acbf14
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
<!-- Google Analytics integration -->
|
<!-- Google Analytics integration -->
|
||||||
{% set analytics = config.google_analytics %}
|
{% set analytics = config.google_analytics %}
|
||||||
|
<link rel="preconnect dns-prefetch" href="https://www.google-analytics.com">
|
||||||
|
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
window.ga = window.ga || function() {
|
window.ga = window.ga || function() {
|
||||||
(ga.q = ga.q || []).push(arguments)
|
(ga.q = ga.q || []).push(arguments)
|
||||||
|
Loading…
Reference in New Issue
Block a user