Skip Navigation

[Resolved] Lazy Load of map marker image on click

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1163131

Tell us what you are trying to do? We have a map with over 500 pins on it. Each pin marker has an image, title and excerpt. The page is slow to load. What we would like is for the images to only be loaded when a pin marker is clicked. Is this possible?

Is there any documentation that you are following? Didn't find any

Is there a similar example that we can see? I found this link: https://toolset.com/forums/topic/map-with-html-in-pin-load-with-ajax-to-reduce-site-loading-size/ and was hoping that this feature had been implemented in the last year. If not add a feature request for it.

What is the link to your site? hidden link

#1163597

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Did you try any generic lazy-load solution? I'm not sure if I would expect them to work, they are typically based upon whether an element is in the Viewport, I'm not sure if they are also sensitive to whether the container is displayed or not, and the only way to know would be to try such a plugin and see if it works or not.

I don't have any particular recommendations (Noman listed several in the thread you linked to).

Let me know if you try and it works or not.