1: I want setTimeout to execute the functions in ready first, but not
2: code:
setTimeout(function(){
console.log("one");
},500);
$.holdReady(true);
$("document").ready(function(){
console.log("two");
});
the result is to print two before printing one.
Why does the (true); still execute the ready function when $.holdReady (true); is set? I didn"t set the $.holdReady (false); and how can I let the setTimeout finish executing the ready (). First