# Filters working / not working randomly

**URL:** <https://forum.finsweet.com/t/filters-working-not-working-randomly/6308>\
**Category:** Attributes\
**Tags:** cmsfilter, attributes-v2\
**Created:** [October 29, 2025, 1:39am UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308 "2025-10-29T01:39:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farhan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/farhan/32/5417_2.png) [@Farhan](https://forum.finsweet.com/u/Farhan)\
**Post date:** [October 29, 2025, 1:39am UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/1 "2025-10-29T01:39:15Z")

</div>

Hi Finsweet fam,

I’m using Attributes v2 CMS filter for the first time. Everything seems set up correctly, sometimes the filters work perfectly, but other times they stop working when the page loads until I refresh. Could anyone let me know if I’ve missed something, or share suggestions for making sure the filter works consistently?

**[Sandbox Link](https://preview.webflow.com/preview/sopact?utm_medium=preview_link&utm_source=designer&utm_content=sopact&preview=ecfab45e25810e4590852abf3d68fd98&pageId=68cbdaab5545bdf8ba94c2bf&locale=en&workflow=preview)**

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [October 29, 2025, 8:50am UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/3 "2025-10-29T08:50:20Z")

</div>

Hey @Farhan the filter script could be running before the CMS items are fully loaded

Try adding this just after the cdn

```html
<script>
window.Webflow ||= \\\[\\\];
window.Webflow.push(() => {
   if (window.fsAttributes && window.fsAttributes.cmsfilter) {
      window.fsAttributes.cmsfilter.init(); // Attributes re-initialized after Webflow load
   }
});
</script>

```

---

<div class="post-metadata">

**Author:** ![Farhan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/farhan/32/5417_2.png) [@Farhan](https://forum.finsweet.com/u/Farhan)\
**Post date:** [October 29, 2025, 5:08pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/4 "2025-10-29T17:08:41Z")

</div>

hi @jesse.muiruri thanks for your reply 🙂 I’ve implemented the script and I still see the filters not working. Below are the examples:

When it works, it gives me facet count and I when I click on the categories it works

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/2/2908a8f48e08172038e2a876ee932d807134e12e.jpeg)

When it doesn’t It shows the static values I have set in webflow and I have to refresh the page to make it working again sometimes 2-3 times.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/e/e08848e27f05c3b5b4f58d4964f9f8d8bd700898.jpeg)

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [October 29, 2025, 6:04pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/5 "2025-10-29T18:04:06Z")

</div>

Sorry @Farhan

Earlier code had typos

Please try this one

```auto
window.FinsweetAttributes ||= [];
window.FinsweetAttributes.push([
  'list',
  (listInstances) => {
    console.log('List Successfully loaded!');

    const [listInstance] = listInstances;
    console.log(listInstance);

  },
]);

```

The team is looking into this, will keep you posted

Thanks

---

<div class="post-metadata">

**Author:** ![Farhan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/farhan/32/5417_2.png) [@Farhan](https://forum.finsweet.com/u/Farhan)\
**Post date:** [October 29, 2025, 10:18pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/6 "2025-10-29T22:18:15Z")

</div>

I have updated the code, will be testing this out today. Thanks @jesse.muiruri

---

<div class="post-metadata">

**Author:** ![Farhan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/farhan/32/5417_2.png) [@Farhan](https://forum.finsweet.com/u/Farhan)\
**Post date:** [October 30, 2025, 11:18pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/7 "2025-10-30T23:18:09Z")

</div>

Hi @jesse.muiruri updating here after a day of testing although I see it reduced by a lot i still see that it doesn’t work sometimes. I’m wondering what might be the issue. And do you know if this is normal and happens often?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/0/0ac29d8a3909848bea1ca04aecace70a51a54228.png)

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [November 8, 2025, 1:35pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/8 "2025-11-08T13:35:16Z")

</div>

Hey @Farhan so sorry for the delay

Just realized the issue might be the filter script executing before the page is ready

So that’s why it works reliably on reload

I would recommend changing the async attribute to defer, which will wait till page is ready before the filter script does its thing

Replace the cdn with this

```auto
<script defer type="module"
src="https://cdn.jsdelivr.net/npm/@finsweet/attributes@2/attributes.js"
fs-list
fs-inject
></script>

```

Let me know

Thanks

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [November 14, 2025, 5:10pm UTC](https://forum.finsweet.com/t/filters-working-not-working-randomly/6308/9 "2025-11-14T17:10:13Z")

</div>

Hey @Farhan

I see you implemented the solution

Have tested on my end & it seems to work reliably

Let me know if it works 💯 on ur end

Thanks
