Answer the question
In order to leave comments, you need to log in
How to delay the loading of metrics scripts on wordpress?
Maybe someone knows how to delay the download or completely remove the Yandex metrics, google analytics, facebook, etc. scripts from the download. Because of them, PageSpeed sags a lot. And if Yandex, then it’s clear how it can be excluded from the download, then for example fb apparently comes directly from the VP topic and I can’t understand how to exclude it. Ideally, it would probably just be to delay loading them.
Answer the question
In order to leave comments, you need to log in
fb apparently comes directly from the topic vp
Maybe someone knows how to delay the download or completely remove the Yandex metrics, google analytics, facebook, etc. scripts from the download.
what you connect directly can be hidden from bots like this
if (!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'Lighthouse')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question