Smoothstate js keeps reloading scripts on repeat

396 Views Asked by At

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?enter image description here

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);
0

There are 0 best solutions below