B
B
BoriHagen2020-04-04 21:52:50
htaccess
BoriHagen, 2020-04-04 21:52:50

How to speed up the work of third-party scripts?

The site is hosted, it has a bunch of third-party scripts connected, because of which the google sped test gives low scores. Is there any way to speed up their loading and execution? Connected: yandex.metrica and a bunch of third-party scripts. And by the way, they all have the async attribute.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy, 2020-04-07
@BoriHagen

- All unnecessary scripts for displaying the page should be moved to the footer, but do it carefully, because. the site can work crookedly, move it in turn, and see that nothing is spoiled.
- Scripts that are loaded via , and are not important for displaying the page, you can add the defer attribute to them, so this is a delayed loading, the script will be executed after the page is loaded - Ideally, images on the site should be converted to webp and jpeg 2000 format, and icons to svg format - You need to enable page caching on the user side - You need to enable caching and gzip compression on the server side This minimum will help raise the level in Google Pagespeed Insight<script src="">
<script defer src="">
But then again, Google Pagespeed Insight doesn't tell the whole story, and it's not a good indicator of a site's performance. Chasing high scores often does not make sense, or even not possible.

A
Arseny, 2020-04-04
Matytsyn @ArsenyMatytsyn

Postpone download .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question