Skip to content

guidances for working with MDS #5

@johnnliu

Description

@johnnliu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions