<?php
// FacetWP "preloads" its data so that on initial pageload the facets render pretty much instantly.
// This code will prevent that and causes it to do a refresh on first load.
// See: https://facetwp.com/help-center/developers/hooks/advanced-hooks/facetwp_use_preloader/
add_filter( 'facetwp_use_preloader', '__return_false' );