Theme is Causing Ajax Conflicts for a plugin I cant identify it

Managed to get this fixed, I dont know why this is the way it is, I’d appreciate a explanation

I had to go down to my footer and make sure the structure was the follow:

</footer>
<?php wp_footer(); ?>
</body>
</html>

If <?php wp_footer(); ?> is above </footer> the plugin doesnt work

So I’ll be awarding bounty to any explanation for this