I'm using AJAX to get different data from the server, but some data aren't as important or isn't updated as frequently. So, I need to update in different intervals or set setTimeout. (please no JQuery)
I read here that setTimeout is alot better, because it doesn't cancel out other timed event like setInterval does.
function ajax_one(){
//do something
}
function ajax_two(){
//do something
}
function nest(){
//call function
function ajax_one();
//run function one every min
function ajax_two(){}
//run function two every 6 Minutes
}