jQuery ( document ). ready ( function () { ExecuteOrDelayUntilScriptLoaded ( myfunction , "sp.js" ); });