F
F
foxayb2018-04-26 10:22:02
Web development
foxayb, 2018-04-26 10:22:02

How to properly refuse elements that are loaded from Google servers?

The hosting provider wrote:

We noticed that some elements on the site are loaded from Google servers, some of which fell under the sanctions of Roskomnadzor. There are moments when the client waits for a response from the Google servers and continues loading only after the timeout has expired - as a result, page loading is delayed by 10-30 seconds. This is very bad.

How to choose a strategy to deal with this problem?
The first thing that comes to mind: "View page code" -> ctrl + f -> "google", the result is:
<link rel="dns-prefetch" href="//maps.googleapis.com">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="stylesheet" id="archi-fonts-css" href="https://fonts.googleapis.com/css?family=Allura%7CDosis%3A200%2C300%2C400%2C500%2C600%2C700%2C800%7CMontserrat%3A100%2C100i%2C200%2C200i%2C300%2C300i%2C400%2C400i%2C500%2C500i%2C600%2C600i%2C700%2C700i%2C800%2C800i%2C900%2C900i%7COpen%2BSans%3A300%2C300i%2C400%2C400i%2C600%2C600i%2C700%2C700i%2C800%2C800i%7CPT%2BSans%3A400%2C400i%2C700%2C700i%7CRaleway%3A100%2C100i%2C200%2C200i%2C300%2C300i%2C400%2C400i%2C500%2C500i%2C600%2C600i%2C700%2C700i%2C800%2C800i%2C900%2C900i&amp;subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Clatin-ext%2Cvietnamese" type="text/css" media="all">
<link rel="stylesheet" id="ipt-eform-material-font-css" href="https://fonts.googleapis.com/css?family=Noto+Sans%7CRoboto%3A300%2C400%2C400i%2C700&amp;ver=4.2.1" type="text/css" media="all">
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDZJDaC3vVJjxIi2QHgdctp3Acq8UR2Fgk&amp;ver=4.9.5"></script>
<script type="text/javascript" charset="UTF-8" src="http://maps.googleapis.com/maps-api-v3/api/js/32/12/intl/ru_ALL/common.js"></script>
<script type="text/javascript" charset="UTF-8" src="http://maps.googleapis.com/maps-api-v3/api/js/32/12/intl/ru_ALL/util.js"></script>
<script type="text/javascript" charset="UTF-8" src="http://maps.googleapis.com/maps-api-v3/api/js/32/12/intl/ru_ALL/stats.js"></script>

I understand that all this needs to be transferred directly to the hosting provider? Or are there any other effective options or solutions?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question