need to load a div then refresh

need to load a div then refresh

I have searched all over the net and the below example is the only I can find to do this,

I need to have a DIV refresh an external file every X amount of seconds.
This code works but the problem is on initial page load, it waits X amount of seconds to load the page, I would like to have the DIV load on page load, then refresh every X amount of seconds. I am a newbe when it comes to javascript so any help would be great

<script>
var auto_refresh = setInterval(
function(){
   $('#notificationcontainer').
        load('http://localhost/member/beta_new/notifications.inc.php').
        fadeIn("slow");
}, 10000);
</script>


The above code loads this DIV

<div id="notificationcontainer"></div>