Menu
So I’ve seen this snippet on stackoverflow, I am just wondering if this is a good way of adding header & footer links from a separate file, and is it well supported on all browsers?
snippet:
“`
<script>
$(function(){
$(“#header”).load(“header.html”);
$(“#footer”).load(“footer.html”);
});
</script>
if this is not a good way to do this, what is?