<script>
const pageLoaded = setTimeout(start, 2000);
function start() {
if(document.getElementById("footerBanner")) {
clearTimeout(pageLoaded);
//Place your code below this line
}
}
</script>
This code waits till the footer of the page has loaded before running any other Javascript. It re-checks for the footer every 2 seconds. This code works with vanilla JavaScript, no jQuery needed.