cache function
Collapse the table of content
Expand the table of content

WinJS.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.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 WinJS version

WinJS 1.0

Namespace

WinJS.Fragments

See also

Samples
Loading HTML fragments sample (Windows)

 

 

Show:
© 2017 Microsoft