Aravind Kumar

Aravind Kumar

  • NA
  • 32
  • 18.1k

ExecuteOrDelayUntilScriptLoaded not executing

Nov 3 2016 9:12 AM
ExecuteOrDelayUntilScriptLoaded not executing after page publish
In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following:
ExecuteOrDelayUntilScriptLoaded(functionCall, "sp.js");
function functionCall() { alert('Hi'); }
How come the alert is called when the page is unpublished, but once I publish the page then ExecuteOrDelayUntilScriptLoaded() is not firing.

Answers (1)