Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Willy Bahuaud

    (@willybahuaud)

    Hello,
    The incompatibility came from, in the code, you’re enqueuing main scripts properly but some “script snippets” are wrote directly in the footer or header. These snippets require jQuery or another js library which are deferred, and will be loaded later.
    So, I think you could use the function wp_localize_script() to build an array of arguments (during the loading of the page), and pass these parameters to your main javascript file, which can deal with it ??
    Ideally, we should never see echo <script in php files.

    Hi Willy,
    thanks for getting back to me.
    Just not sure about your answer – for maps on frontend I do not use any “echo ‘<script…”-code…
    best,
    Robert

    Plugin Author Willy Bahuaud

    (@willybahuaud)

    You’re right, I installed your plugin to look closely ??
    It seem that the var $lmmjs_out is passed as data to your script (great!) but this inline script require jQuery to work… and at this point jQuery is not loaded, it will be loaded later…
    You can pass only var to your script, or, wrap all this script into a function called on page loaded (this call must be in your file, not inline) ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘plugin incompatibility with Leaflet Maps Marker / Maps Marker Pro’ is closed to new replies.