Google map disapeared

The google map in the footer is not displaying when the Asset Optimization is enabled. Even when the options to “Compress”, Combine, etc… are unchecked in all JS files

  • Luís
    • Support

    Hi Berty ,

    Hope you’re doing well today :slight_smile:

    As I mentioned during the Live chat, I will flag the SLS team (our code experts :slight_smile: ) to investigate further and get their valuable feedback.

    Since this team deals with more advanced threads it may take them longer to reply.

    Cheers, Luís

  • Ari
    • Recruit

    Hey Berty

    Hope you are fine!

    The actual issue is in Avada theme, they didn’t optimize the following code:

    google.maps.event.addDomListener(window, 'load', fusion_run_map_fusion_map_5ab8ff7e32a4b)

    it’s trying to access the google object while it’s not available unless the DOM is fully ready, when you activate the asses optimization.

    The better way of this code would be:

    if( google )
    google.maps.event.addDomListener(window, 'load', fusion_run_map_fusion_map_5ab8ff7e32a4b)

    So you can report it to the Avada theme, so they have a proper fix for it. In the mean time I’m trying to find another solution for you!

    If I find I’ll let you know here.



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.