Answer the question
In order to leave comments, you need to log in
Error ymaps is not defined on asynchronous loading. How to decide?
To speed up the loading of the site for Google Page Speed, I use the asynchronous loading of the yandex maps API.
<script async="async" src="https://api-maps.yandex.ru/2.1/?lang=ru_RU"></script>
window.addEventListener('DOMContentLoaded', function() {
...
});
Answer the question
In order to leave comments, you need to log in
Read this and I think if you read carefully, you will not try to load asynchronously.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question