Map not showing up on mobile

New home Forums Basic Version Map not showing up on mobile

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #76687
    kpassonline
    Participant

    Hello,

    We’ve just installed your plugin and it looks fantastic on desktop. However, when I go to the page on the mobile phone, the map doesn’t show up (blank space). I tried to troubleshoot by looking at other posts in the forums, but it’s still not working for me.

    #76720
    Matthew
    Moderator

    Hi there,

    Thank you for getting in touch with us, we do appreciate your time.

    Please may you provide me with the link to your map so that I may take a closer look?

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #76744
    kpassonline
    Participant
    This reply has been marked as private.
    #76775
    Matthew
    Moderator

    Hi there,

    Thank you for your response and time on this, I really appreciate it!

    Thank you for the link, I have taken a look on desktop and it appears that your map is not displayed on my end. It appears that you are receiving some javascript errors that ‘jQuery is not defined’.

    I have looked into this and it appears that your jQuery script tag that loads the jQuery bundle is being deferred, thus please may you confirm if you have any plugins that could cause this?

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #76838
    kpassonline
    Participant
    This reply has been marked as private.
    #76851
    Matthew
    Moderator

    Hi there,

    Thank you for your response and for the new link.

    Yes that is correct as it appears that the script tag that loads the jQuery bundle is being deferred which is causing the issue. When logged in, most optimization plugins do not apply this as it allows the admins to view the page as raw as possible without any caching or performance settings applied.

    With that said, please may you confirm if you can find and disable any setting like “Defer jQuery/jQuery Migrate” in your optimizations/security plugin or theme and confirm if this helps?

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

    #78888
    [email protected]
    Participant

    I had this same problem. I turned off Load Javascript Deferred in WP Rocket and the map appeared. Is there any other way to get around this problem without turning off Load Javascript Deferred? Thank you.

    #78902
    Matthew
    Moderator

    Hi there,

    Thank you for getting in touch with us, we do appreciate your time.

    Yes you may exclude specific paths and files from the deferred scripts, thus please may you try adding the following to the exclusion section in WP Rocket and confirm if this helps:

    /jquery(.*)(.min|.slim|.slim.min)?.js
    /jquery-?[0-9](.*)(.min|.slim|.slim.min)?.js
    /jquery-migrate(.min)?.js
    /wp-includes/js/jquery/jquery-migrate.min.js
    maps.googleapis.com
    maps.google.com
    /wp-google-maps

    I look forward to hearing back from you.

    Kindest Regards,
    Matthew

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.