• Resolved swinggraphics

    (@swinggraphics)


    In this thread, it was said that deferred scripts were coming in 8.1. This is still very much needed. The plugin should not load any resources until the page has loaded, maybe even waiting until the map is in view or close to it. As such, it would be optimal to add the required JS tags to the page only after window load (regular images should be finished loading before fetching more from Google). Maybe even wait until the map is in view or close to it.

Viewing 1 replies (of 1 total)
  • Plugin Author DylanAuty

    (@dylanauty)

    Hi @swinggraphics,

    Thanks for reaching out, we appreciate your time.

    That thread was in reference to the ‘defer’ attribute not being supported by our code base, meaning that if you deferred the scripts the map would not initialize.

    We did release support for deferred loading, meaning with a bit of additional set up you can defer the script loading without negatively effecting any of the map modules.

    Usually, we recommend using a plugin like: Async JavaScript by Frank Goossens (futtta) – To manage the deferred loading of the modules, as it applies to all scripts within the environment while allowing granular control over what is applied.

    With that being said, we do have plans to add settings for this and full lazy-loading within the plugin core at a later stage.

Viewing 1 replies (of 1 total)
  • The topic ‘Defer (“lazy load”) map scripts’ is closed to new replies.