A
A
Alexey2012-06-14 08:26:58
JavaScript
Alexey, 2012-06-14 08:26:58

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

6 answer(s)
D
dmitryklerik, 2012-06-14
@capt_Rimmer

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

T
TheMengzor, 2012-06-14
@TheMengzor

Use static maps

M
max_rip, 2012-06-14
@max_rip

Why not put all the stores on one map?
Well, move around them with the help of clicks on the names.

A
Anton Korzunov, 2014-07-03
@kashey

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.

B
barker, 2012-06-14
@barker

Caching what? So what exactly is loaded for a long time? Check the timings in chrome. Are your cards dynamic or static?

A
aleksandr-n, 2020-02-04
@aleksandr-n

In my opinion the best option is described here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question