SP.SOD.executeOrDelayUntilEventNotified(func, eventName) Method
Applies to: SharePoint Foundation 2010
Executes the specified function if the specified event has occurred; otherwise, adds the function to the pending job queue.
SP.SOD.executeOrDelayUntilEventNotified(func, eventName);
Parameters
func
Type: Function
The function to execute.
eventName
Type: String
The name of the event.
Remarks
Call the SP.SOD.notifyEventAndExecuteWaitingJobs(eventName) Method method with eventName to execute any pending jobs waiting on the event.