I have this function:
<script>
var auto_refresh = setInterval(
(function () {
$("#randomtext").load("notification.php");
}), 10000);
</script>
it loads what it gets from notification.php to my div with id randomtext every 10 seconds. Is it possible to make it run at the very first time in like 1 second after the page is loaded and then every 10 seconds?