CMS Filters only working after 3-4x page refreshes

Hey @de.skaaa!

Adding the Attributes Callbacks to your page I noticed that CMS Filter is finishing loading before CMS Nest has done it’s job, this maybe why on initial page load it seems to take a while for filters to start working correctly.

You might want to take a look at this guide on how to nest large collections → CMS Nest reaching over 100+ CMS items - #2 by Support-Luis additionally you’d need to initialize CMS Filter with this code snippet

<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'cmsnest',
    (listInstances) => {
      console.log('cmsnest Successfully loaded!');
      window.fsAttributes.cmsfilter.init();
    },
  ]);
</script>

Let me know if this helps out!

Also, both CMS Nest and CMS Load cache the page info for better performance next time a user visits the page :wink:

1 Like