$(function () { $("#footer").load("footer.html", function (responseTxt, statusTxt, xhr) { refreshLoc(); }); });