Edit this page

up.link up.deferred.load(placeholder, [options])
JavaScript function

This feature is experimental. It may be changed or removed in a future version.

Loads a [up-defer="manual"] placeholder.

See custom load timing for deferred content for details and examples.


Parameters

placeholder Element

The [up-defer] placeholder to load.

[options] Object optional

Render options that should be used for loading the partial.

Unpoly will parse render options from the given placeholder's attributes, like [up-target] or [up-cache]. See [up-defer] and [up-follow] for a list of supported attributes.

You may pass this additional options object to supplement or override options parsed from the placeholder attributes.

Return value

A promise that fulfills with an up.RenderResult once the deferred content has been loaded and rendered.