Options for reloading the fragment.
By default Unpoly will parse options from the fragment's attributes (see [up-poll]
).
You may pass this additional options
object to supplement or override options parsed from the fragment's attributes.
Controls polling while the fragment's layer is covered by an overlay.
When set to 'front'
, polling will pause while the fragment's layer is covered by an overlay.
When the fragment's layer is uncovered, polling will resume.
When set to 'any'
, polling will continue on background layers.
The URL from which to reload the fragment.
Defaults to the URL this fragment was originally loaded from.
The HTTP method used to reload the fragment.
A JSON object with additional request headers.
A JSON object with additional parameters that should be sent as the request's query string or payload.
When making a GET
request to a URL with a query string, the given { params }
will be added
to the query parameters.
A placeholder to show within the targeted fragment while new content is loading.
Existing children of the targeted fragment will be hidden during the request. When the request ends for any reason, all changes will be reverted.
One or more previews that temporarily change the page while new content is loading.
The preview changes will be reverted automatically when the request ends for any reason.