initialize Method

Loader.Initialize Method

Initializes the Loader.

Namespace:  Microsoft.Live.Core



Type: Microsoft.Live.Core.LoaderSettings
The settings to update.

To initialize settings of the Loader, invoke this method immediately after referencing the loader.js file. Currently, a market can be provided to load language-specific resources.

The Initialize(LoaderSettings) method must be invoked prior to invoking the Load(String, Callback) method of the loader.

This example shows how Japanese resources can be loaded.

            <script type="text/javascript" src=""></script>
            <script type="text/javascript">
                function onLoaded() {
                    alert("Features loaded.");
                Microsoft.Live.Core.Loader.initialize({market: "ja-JP"});
                Microsoft.Live.Core.Loader.load("Messenger.UI", onLoaded);

ExceptionThe Load(String, Callback) method has already been invoked.

Windows Live Messenger Web Toolkit

Supported in: 3.7, 3.5, 3.1, 3.0

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0

© 2015 Microsoft