WP Rocket

WP Rocket has a feature to delay JavaScript execution:

Using this feature with Search & Filter can result in our search & filter fields not displaying at all.

To work around this, we can add some rules to exclude our JavaScript files and objects.

In the Excluded JavaScript Files section:

Add the following rules (copy & paste):

/wp-content/plugins/search-filter/assets/frontend/app.js
/wp-content/plugins/search-filter-pro/assets/frontend/app.js
/wp-content/plugins/search-filter/assets/frontend/components/combobox.js
/wp-content/plugins/search-filter/assets/frontend/components/checkbox.js
/wp-content/plugins/search-filter/assets/frontend/components/date-picker.js
/wp-content/plugins/search-filter-pro/assets/frontend/components/range.js
/wp-content/plugins/search-filter-elementor/assets/v3/js/frontend.js
window.searchAndFilter
window.searchAndFilterData
window.searchAndFilterApiUrl
window.searchAndFilterPage
window.searchAndFilterPage.body

Once they’ve been added and saved, Search & Filter should work again as normal.