The getLoadState() method gets the module load state.
loadstate = getLoadState()
|
Constant |
Module load state:
WAITING_FOR_INITIALIZATION |
if (this.getLoadState() < Splunk.util.moduleLoadStates.HAS_CONTEXT) {
return;
} else {
alert('I have a context and can proceed with some useful function');
}