jsf-frontend-events
Installation
SKILL.md
JetSmartFilters frontend events
Subscribe to the JSF event bus and scope every callback. For a listing, the three essential lifecycle channels are:
| Channel | Callback arguments | Meaning |
|---|---|---|
ajaxFilters/start-loading |
provider, queryId |
A real AJAX request started; preloader is active |
ajaxFilters/updated |
provider, queryId, response, requestOptions |
Response was processed and provider DOM/fragments were updated |
ajaxFilters/end-loading |
provider, queryId |
Loading teardown ran and the preloader was hidden |
Use updated to read or initialize the new DOM. Use end-loading for a
global “cycle finished” UI state. They are not aliases.
Load a companion script after JSF
JSF enqueues its public script in wp_footer only on pages where filters were
rendered. Queue the bridge after JSF has enqueued itself and before footer
scripts print: