XF 1.5 Jquery Script triggering default Xenforo "loading" gif

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?

<script type="text/jscript">

function notifications(){
    setTimeout(notifications, 5000);


Last edited: