I have a function update()
that is called at 5 second intervals:
setInterval(function() {
update();
}, 5000);
My objective, however, is to call the function immediately on load and then every 5 seconds after that. How would one achieve this in javascript or jQuery ?