CMS Filter Active Tag Placeholder showing on page load

I am encountering an issue on a page set up with many attributes (CMS Filter, Nest, Combine, Load, Sort).

Sometimes, the active tag placeholder div, which has the attribute “fs-cmsfilter-element = tag-template” applied, appears on page load and won’t disappear. It seems to be some sort of bug (see screenshot below). The same issue is happening with the empty state div, which has attribute “fs-cmsfilter-element=empty” applied.

In the instances where this occurs, these placeholder div blocks do not deactivate when you click the “x” or click “Clear All” or refresh the page.

This site is already live so any ideas on how to fix would be greatly appreciated!

Read Only Link:

Screenshot of live site:

Hey @accounting, I’m afraid I can not replicate this issue on my end. I’ve tested on mobile and desktop with and without throttling the connection and both elements disappear as expected when the page finished loading.

Hi @Support-Luis and @accounting ,
I´ve got the same problem. The tag-template shows up for a second on page load. And it is not hidden, when the list is empty.
Live Site: Second Hand Party

Hey @Nils_dasda! You seem to have an empty collection in this page, as the fs-cmsfilter-element="list" is placed in the collection list, CMS Filter can not correctly initialize as the attribute is removed from the page by the empty state.

A fix for this would be to add the attribute to the collection wrapper. Can you test and let me know how it goes?

1 Like

Hey @Support-Luis thanks for the replay. Of course the tag-template is now hidden, when the collection list is empty. Great.
But is there also a solution for the page-load issue? So that the tag-template is not showing up for a second or more on page load?
Thank you for the help.

Hey @Nils_dasda! There is no native way to do this, however, you can add a wrapper div with a hide class, a unique id, and some simple JS that will remove this class from the element once CMS Load finishes loading.

This snippet will handle it

  window.fsAttributes = window.fsAttributes || [];
    (listInstances) => {
      console.log('cmsload Successfully loaded!');
      const hiddenTagWrapper = document.getElementById('hide-this-on-load');