Compartilhar via


SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs(scriptFileName) Method

Applies to: SharePoint Foundation 2010

Records that the script file is loaded and executes any jobs in the pending job queue that are waiting for the script file to be loaded.

SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs(scriptFileName);

Parameters

scriptFileName

Type: String

The name of the script file.

Remarks

This method executes any jobs that are in the pending job queue after a call to the SP.SOD.executeOrDelayUntilScriptLoaded(func, depScriptFileName) Method method with scriptFileName as the second parameter. Subsequent calls to SP.SOD.executeOrDelayUntilScriptLoaded with scriptFileName are immediately executed.

This method should be the last line of any JavaScript file that is registered with a call to the SP.SOD.registerSod(key, url) Method method with scriptFileName as the first parameter.

Applies To

SP.SOD Class

See Also

Reference

SP.SOD Methods

SP Namespace

Other Resources

SP.SOD Properties