# CMS Filters only working after 3-4x page refreshes

**URL:** <https://forum.finsweet.com/t/cms-filters-only-working-after-3-4x-page-refreshes/2118>\
**Category:** General\
**Created:** [October 31, 2023, 10:00am UTC](https://forum.finsweet.com/t/cms-filters-only-working-after-3-4x-page-refreshes/2118 "2023-10-31T10:00:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [October 31, 2023, 11:58am UTC](https://forum.finsweet.com/t/cms-filters-only-working-after-3-4x-page-refreshes/2118/2 "2023-10-31T11:58:31Z")

</div>

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](https://forum.finsweet.com/t/cms-nest-reaching-over-100-cms-items/772/2) additionally you’d need to initialize CMS Filter with this code snippet

```js
<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 😉

---

_[View the full topic](https://forum.finsweet.com/t/cms-filters-only-working-after-3-4x-page-refreshes/2118)._
