I have following jquery code in client side JS
// Following gets executed at document.ready() time
$(function() {
prepareCurList();
});
// When does the following code gets executed as its just a plain JS statement???
prepareNextList();
Please provide pointers.
The following code is executed right after executing
$(function() { }).$(function () {})is just registering a handler to be executed on document ready, but the handler itself will not be executed until document is ready.