FacetWP – prevent the loading spinner

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// Add the following to your theme’s functions.php
function fwp_prevent_loader() {
?>
<script>
(function($) {
$(function() {
FWP.loading_handler = function() {}
});
})(jQuery);
</script>
<?php
}
add_action( ‘wp_head’, ‘fwp_prevent_loader’, 50 );

{{/gist}}