Answer the question
In order to leave comments, you need to log in
How to speed up Yandex.Maps API 2.0 on a website?
Good day!
Is there a Yandex.Maps API 2.0 caching? The problem is that there are 3 maps on one page of the site (location of stores).
Without scripts from Yandex.Maps API 2.0, the page loads in 1.30 seconds, and with the API - 5.44 seconds. (Google Chrome).
Tell me, someone can do something - I don’t want to refuse interactive maps on the site :)
Answer the question
In order to leave comments, you need to log in
Play around with the number of packages to load and don't forget to remove the &mode=debug parameter from the maps connection string.
api.yandex.ru/maps/doc/jsapi/2.x/ref/reference/packages.xml
Why not put all the stores on one map?
Well, move around them with the help of clicks on the names.
The best option is to first make friends with static maps, and only when you click on them - replace them with dynamic ones.
Well, or load maps after dom.ready.
The main question here is why there are maps.
Caching what? So what exactly is loaded for a long time? Check the timings in chrome. Are your cards dynamic or static?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question