• Resolved portpass1974

    (@portpass1974)


    Hi, I noticed that the map isn’t showing on Chrome browsers, both on screens and devices. I thought it was a Javascript caching issue, but it isn’t. Do you know what is causing this, and could rolling back to an earlier version fix this?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author chrisvrichardson

    (@chrisvrichardson)

    Hi,

    It looks like something on the site removed a piece of JavaScript MapPress outputs in the document head. I don’t think it’s a MapPress bug, so rolling back to a previous version probably won’t help, but you could try.

    The steps here should help you find out if the problem is from another plugin or the theme:

    https://mappresspro.com/mappress-faq/

    This kind of problem is often (but not always) caused by ‘minifier’ or ‘optimizer’ plugins.

    Thread Starter portpass1974

    (@portpass1974)

    Okay, I see that it’s being caused by JavaScript Combination. My caching plugin, SG Optimizer, allows for us to Exclude certain combinations, but I can’t find the plugin in there. Should it be listed in there? And do you now what the .js file for your plugin would look like? Thanks.

    • This reply was modified 2 years, 11 months ago by portpass1974.
    Plugin Author chrisvrichardson

    (@chrisvrichardson)

    Hi,

    There’s a 1-line, unnamed script that should appear in the header, and these:

    index_mappress.js (only on pages with a map)
    index_mappress_admin.js (only on admin map pages with maps)

    And CSS:
    mappress.css
    mappress_admin.css

    I think that optimizer lets you exclude URLs, so maybe you could just exclude the page(s) with a map?

    Thread Starter portpass1974

    (@portpass1974)

    Hi there. Are you saying that they aren’t present in the header? Is that for Chrome, for Firefox or both?

    Actually, the plugin doesn’t allow us to omit entire pages. I can remove the Combine JavaScript entirely (then the map appears in Chrome), but then one of my fonts doesn’t load, so I can’t do that.

    • This reply was modified 2 years, 11 months ago by portpass1974.
    Plugin Author chrisvrichardson

    (@chrisvrichardson)

    Hi,

    A one-line script is output to the header, and the rest are usually output in the footer (unless you change that in the MapPress settings).

    I don’t know how to fix the optimizer. Even without MapPress the google maps API can’t be ‘optimized’ (their script looks like: ‘https://maps.googleapis.com/maps/api/js…’).

    MapPress should work with the ‘autoptimize’ plugin if you need to switch optimizers.

    Thread Starter portpass1974

    (@portpass1974)

    I can’t switch optimizers at this point. And I tried rolling back the plugin to an earlier version, and clicked to have the Output Scripts in footer, but that didn’t work either. Are there any other options?

    Plugin Author chrisvrichardson

    (@chrisvrichardson)

    No need to roll back, this isn’t a MapPress issue, and I don’t think it’ll matter if the scripts are in the header or footer.

    You’ll need to exclude the Google API and probably the MapPress scripts from optimization. I’m not sure how I can help you with that, but the author of the optimizer plugin could probably tell you how to do it.

    Thread Starter portpass1974

    (@portpass1974)

    I actually spoke to the Optimizer plugin developer, and with the Optimizer, there’s no option to exclude the scripts from your plugin.

    I hate to ask, but is there any other option, or should I just fine another mapping plugin?

    Plugin Author chrisvrichardson

    (@chrisvrichardson)

    Sorry, but it looks like the optimizer is removing a necessary script. That’s not something I can fix, but optimizers usually allow scripts or pages to be excluded / whitelisted for this reason.

    If it helps, I did notice on the page below it says: “You can also exclude specific scripts from the different types of optimizations.”

    https://www.ads-software.com/plugins/sg-cachepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Maps not showing on Chrome’ is closed to new replies.