Currently, I am utilizing the Gumby framework which can be found here. Everything appears to be running smoothly. My goal is to incorporate a mobile navigation list where the links are grouped under a single button, as outlined here.
Initially, this functioned well with a standard HTML page. However, due to having multiple pages with identical headers (nav bar) and footers, I opted to segregate all the HTML content into separate files and load them using a script:
<script>
// Load navigation/footer
$(function () {
$("#navigation").load("html/nav.html");
$("#footer").load("html/footer.html");
});
</script>
The issue arises when I implement this method - my mobile navigation list ceases to operate properly. It seems like the mobile nav bar initializes first, then the document loads the HTML, resulting in no functionality. Does anyone have any suggestions for resolving this dilemma?
Appreciate any insights or advice provided. Thank you.