Open johnnliu opened 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(); }
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(); }