Compartir a través de


WinJS.Fragments.cache function

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)