johnnliu / UserCustomActionsConfigPage

The easiest way to add script to your SharePoint and SharePoint Online
33 stars 22 forks source link

guidances for working with MDS #5

Open johnnliu opened 8 years ago

johnnliu commented 8 years ago

Probably the best official MDS documentation I've seen.

https://msdn.microsoft.com/en-us/library/office/dn913116.aspx

// Is MDS enabled? if ("undefined" != typeof g_MinimalDownload && g_MinimalDownload && (window.location.pathname.toLowerCase()).endsWith("/_layouts/15/start.aspx") && "undefined" != typeof asyncDeltaManager) { // Register script for MDS if possible RegisterModuleInit("scenario1.js", RemoteManager_Inject); //MDS registration // RemoteManager_Inject(); //non MDS run - what stupid non-sense. wrong line. } else { RemoteManager_Inject(); }