→ facetwp-loaded

Overview

This jQuery event gets triggered when FacetWP finishes refreshing. It’s triggered after a user interacts with a facet or pagination control. This event is useful for modifying facet output after being rendered.

Usage

<script>
(function($) {
    $(document).on('facetwp-loaded', function() {
        // Scroll to the top of the page after the page is refreshed
        $('html, body').animate({ scrollTop: 0 }, 500);
     });
})(jQuery);
</script>

See ourĀ many examples on GitHub.