Edit this page

up.radio up:fragment:poll
DOM event

This feature is experimental. Please share your experiences so we know what to keep or change.

This event is emitted before a polling fragment is reloaded from the server.

Listener may prevent the up:fragment:poll event to prevent the fragment from being reloaded. Preventing the event will only skip a single update. It will not stop future polling.


Event properties

event.target Element

The polling fragment.

event.renderOptions Object

An object with render options for the render pass that reloads the polling fragment.

Listeners may inspect and modify these options.

event.preventDefault()

Prevents the fragment from being reloaded.