Delay in function Calling with SP.js context

Hi guyz,

Quick tips about calling delay in function with SP.js context.

SP 2013:

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {
   alert("Ready");
});

SP 2010:

ExecuteOrDelayUntilScriptLoaded(function () {
   alert("Ready");
}, "sp.js");

There is difference in both of the version.

Blog more, Help more..!

Cheers!

Advertisements

2 thoughts on “Delay in function Calling with SP.js context

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s