Okay
  Public Ticket #2660486
Defer google map
Closed

Comments

  •  8
    vv_web started the conversation

    Is it possible to AND to defer google map? (Defer offscreen images of google map.)

  •  599
    Arlind replied

    Hi,

    In what way do you mean to defer google map? Do you mean until user scrolls to the map element, then map initializes?

    Kind regards,
    Arlind


      Documentation         Join Kalium Users Group

  •  8
    vv_web replied

    When I perform Lighthouse test, it says that I should Defer offscreen images to speed up my site. I don't know how to do that.

    I noticed that in code some <img> are lazyloaded (portfolio and blog) and some are not (images on homepage). Is there any option to lazyload all images? Or lazyload some specific images?

    How can i lazyload whole google map?

    Attached files:  Screenshot 2021-01-29 at 18.33.05.png

  •  599
    Arlind replied

    Hi vv_web,

    These images are loaded from Google Maps JavaScript SDK so its their implementation and we cannot change it, and by considering that this is a library from Google and they know the best practices I guess there is no other way for that to be more efficient.

    You can defer loading of JavaScript file however these images its not possible to change their loazyload attribute value.

    Kind regards,
    Arlind


      Documentation         Join Kalium Users Group