Fragments are compiled elements that can be updated from a server URL. They also exist on a layer (page, modal, popup).
Elements are assigned the
.up-destroying class before they are destroyed
or while they are being removed by a transition.
Elements with an
up-keep attribute will be persisted during
This event is emitted after a page fragment was destroyed and removed from the DOM.
When any page fragment has been inserted or updated, this event is emitted on the fragment.
This event is emitted before an existing element is kept during a page update.
This event is emitted when an existing element has been kept during a page update.
Destroys the given element or selector.
Updates a selector on the current page with the same selector from the given HTML string.
Returns the first element matching the given selector, but ignores elements that are being destroyed or that are being removed by a transition.
Compiles a page fragment that has been inserted into the DOM by external code.
Replaces the given element with a fresh copy fetched from the server.
Replaces elements on the current page with corresponding elements from a new page fetched from the server.
Configures defaults for fragment insertion.