I want to use common footer in all pages in my website. I use this code for doing this:
index.html:
<html>
<head>
    <script src="js/jquery.min.js"></script>
    <script> 
    $(function(){       
      $("#generalFooter").load("footer.html"); 
    });
    </script>
</head>
<body>
    <div id ="generalFooter"></div>
</body>
</html>
footer.html:
<footer class="footer footer-distributed">
.
.
.
</footer>   
It's working , Actually I want to know is it the best way for calling static footer in all of pages?
 
     
    