Changed delay to show spinner to 150ms

This avoids unnecessary showing of the spinner when pages load "quick"
This commit is contained in:
bergware
2018-08-24 16:23:42 +02:00
parent 6313e13acd
commit 42e8f448a4
@@ -575,7 +575,7 @@ $(function() {
});
}
$('form').append($('<input>').attr({type:'hidden', name:'csrf_token', value:'<?=$var['csrf_token']?>'}));
setTimeout(function(){$('div.spinner').each(function(){$(this).html(unraid_logo);});},100); // display animation if longer than 100ms
setTimeout(function(){$('div.spinner').each(function(){$(this).html(unraid_logo);});},150); // display animation if page loading takes longer than 150ms
watchdog.start();
});
</script>