Combining Javascript files

Home Forums MapPress Support Combining Javascript files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19336
    jaycollier
    Participant

      Hi! We want to speed up our site by combining JS files (via Siteground Optimizer).

      Unfortunately, we got an error instead of our lovely mashup map on this page https://www.mcht.org/visit-a-preserve/  🙂

      https://postimg.cc/fJSgthJm

      https://postimg.cc/LJdQj017

      We have the ability to exclude scripts from the combined script, but the scripts appear to be inline in the footer.

      Have you seen this before? Do you have any suggestions?

      -Jay

      #19337
      Chris
      Keymaster

        Hi,

        Because the MapPress script is already minified, most ‘optimizer’ plugins can’t combine it, and it needs to be excluded.  The Google Maps API generally needs to be excluded for the same reason.  The scripts to exclude are listed here:

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

        The MapPress script is loaded with a script tag, it’s not inline, but some map data may appear inline on the page.

        #19408
        jaycollier
        Participant

          Thanks! The Siteground Optimizer is now minifying correctly!

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