I'm using smoothstate js for changing pages via ajax and when I click on a link, the page loads successfully and the plugin works, however, it calls my js scripts over and over again and eventually crashes the browser. What could be causing this? How do I exclude my js?
I'm using smoothstate in it's very basic form. And if I remove this snippet from my code, the crazy script loading stops and everything works fine.
;(function ($) {
$('#ajaxcontainer-outer').smoothState();
})(jQuery);