Hide template

mgibbs189

{{gist file=”gistfile1.txt” lang=”text”}}
First, add some CSS to your theme:

.facetwp-template { display: none; }
.facetwp-template.visible { display: block; }

Then you can use this JS to dynamically add the CSS class after the first refresh:

(function($) {
$(document).on(‘facetwp-loaded’, function() {
if (FWP.loaded) {
$(‘.facetwp-template’).addClass(‘visible’);
}
});
})(jQuery);

{{/gist}}