Windows Dev Center

WinJS.UI.Fragments.cache function

Applies to Windows and Windows Phone

Starts loading the fragment at the specified location. The returned promise completes when the fragment is ready to be copied.

Syntax


WinJS.UI.Fragments.cache(href).done( /* Your success and error handlers */ );

Parameters

href

Type: String

The URI that contains the fragment to be copied.

Return value

Type: Promise

A promise that is fulfilled when the fragment has been prepared for copying.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI.Fragments

Library

Winjs.js

See also

Samples
Loading HTML fragments sample (Windows)

 

 

Show:
© 2015 Microsoft