I am referring to this. Everything is still not clear.
- I have a JS function
fillTree()
which updates a tree, it has checkboxes. - I have another function
checkSelectedBoxes()
which is executed onwindow.onload
which checks for selected checkboxes. - Now there are lots of other functions connected.
My question:
- If I am using
setTimeout()
will the other script function also stop and wait for my function to finish loading?
What might be the case in this:
function fillTree(){...}
function checkSelectedBoxes(){...}
fillTree(); // This take time to get data. onLoad() doesnt work.
setTimeout(function(){ checkSelectedBoxes() },5000);
This returns me null values even after increasing the time interval. Does fillTree()
pause execution?