I'm currently working on a website that features a footer with a Google Map. The homepage displays this footer without any issues:
However, in other pages, I've implemented the footer by calling it from an external file using jQuery as shown below:
<script>
$(function(){
$('#header').load('header_contact.html')
$('#fatFooter').load('footer.html')
$('#rightNav').load('rightNav.html')
});
</script>
Unfortunately, when the footer is loaded like this, the map doesn't always display - it's hit or miss.
Could there be a simple solution to ensure the map appears correctly every time a page loads? Ideally, I'd prefer not having to manually code the footer onto every single page.
If you have any suggestions, please feel free to share them. Thank you!