This topic has not yet been rated Rate this topic

SP.SOD.executeOrDelayUntilScriptLoaded(func, depScriptFileName) Method

SharePoint 2010

Executes the specified function if the file containing it is loaded; otherwise, adds it to the pending job queue.

SP.SOD.executeOrDelayUntilScriptLoaded(func, depScriptFileName);

func

Type: Function

The function to execute.

depScriptFileName

The name of the file containing the function.

Type: String

Call the SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs(scriptFileName) Method method with depScriptFileName to execute any pending jobs waiting for the file to be loaded.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ