It\'s there a way to configure the setInterval method of javascript to execute the method immediately and then executes with the timer
setInterval
actually the quickest is to do
interval = setInterval(myFunction(),45000)
this will call myfunction, and then will do it agaian every 45 seconds which is different than doing
interval = setInterval(myfunction, 45000)
which won't call it, but schedule it only