XF 1.5 Jquery Script triggering default Xenforo "loading" gif

#1
I'm running a script in the background that is loading a notification but it keeps triggering the Xenforo default "loading" gif that appears in the top right corner of the screen. Is there any way to have this run but not have it trigger that image from appearing?

Code:
<script type="text/jscript">
$(document).ready(function(){ 
    notifications();
 });

function notifications(){
    $("#newpost").load("update.php").fadeIn('slow');
    setTimeout(notifications, 5000);

}

</script>
 
Last edited:
Top