B
B
bbaggins2017-05-24 20:14:41
Google
bbaggins, 2017-05-24 20:14:41

How to compress an external script?

Friends, hello everyone!
I run my resource through developers.google.com/speed/pagespeed/insights and get errors related to external scripts, ala:


Use the browser cache for the following resources:
https://connect.ok.ru/connect.js (no expiration date specified)
https://connect.facebook.net/ru_RU/sdk.js (20 minutes)
https://mc .yandex.ru/metrika/watch.js (60 minutes)
https://www.google-analytics.com/analytics.js (2 hours)

Surely many have already encountered this, tell me there are mechanisms without problems?
In the internet there are methods with proxying and cron, I don’t really want to dance with a tambourine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dinegnet, 2017-05-24
@dinegnet

Only if you transfer the script to yourself.
But in the case of connect.js classmates, it is doubtful that this will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question