# CMS Nest + Tab Combo Doesn't work on first load (SOLVED)

**URL:** <https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542>\
**Category:** General\
**Created:** [February 22, 2024, 11:48am UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542 "2024-02-22T11:48:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![de.skaaa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/de.skaaa/32/3766_2.png) [@de.skaaa](https://forum.finsweet.com/u/de.skaaa)\
**Post date:** [February 22, 2024, 11:48am UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/1 "2024-02-22T11:48:31Z")

</div>

Hey F’insweet,

I’m facing some issues with combining CMS Nest + Tab. Based on the [troubleshooting](https://driverrr-build.webflow.io/the-fleet-alt?fs-attributes-support=true), everything is set up perfectly, and my setup has all the necessary attributes and codes as [your cloneable](https://finsweet.com/attributes/combos/tabs-nest), so I’m not sure what goes wrong.

[Here’s](https://www.loom.com/share/6899e86d6e7542ed97869c7ca75e602d?sid=a3e94021-1968-4c09-a254-0d9b42f31471) a Loom.

Here’s a [read-only](https://preview.webflow.com/preview/driverrr-build?utm_medium=preview_link&utm_source=designer&utm_content=driverrr-build&preview=8b6acb95a1cf3797e6fb58ea3a780022&pageId=65d5ffe1e406c572578b73d2&locale=en&workflow=preview).

What I also noticed is that after a couple of refreshes, it works. But even after I insert the code that makes the site wait until the list gets loaded, I still need to refresh:

window.fsAttributes = window.fsAttributes || ;  
window.fsAttributes.push([  
‘cmsnest’,  
(listInstances) =\> {  
console.log(‘cmsnest Successfully loaded!’);  
window.fsAttributes.cmsfilter.init();  
},  
]);

And when I insert the following code, which is in your cloneable, it’s even worse, cause the tabs stop working altogether:

window.fsAttributes = window.fsAttributes || ;  
window.fsAttributes.push([  
‘cmsnest’,  
(listInstances) =\> {  
window.fsAttributes.cmstabs.init();  
},  
]);

Any help would be much appreciated.

Thank you.

Bests,  
Bence

---

<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:** [February 22, 2024, 12:28pm UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/4 "2024-02-22T12:28:03Z")

</div>

Hey @de.skaaa! Can you share more info on how the setup is supposed to work?

---

<div class="post-metadata">

**Author:** ![de.skaaa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/de.skaaa/32/3766_2.png) [@de.skaaa](https://forum.finsweet.com/u/de.skaaa)\
**Post date:** [February 22, 2024, 2:39pm UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/5 "2024-02-22T14:39:30Z")

</div>

> [@de.skaaa](#):
>
> window.fsAttributes = window.fsAttributes || ;  
> window.fsAttributes.push([  
> ‘cmsnest’,  
> (listInstances) =\> {  
> console.log(‘cmsnest Successfully loaded!’);  
> window.fsAttributes.cmsfilter.init();  
> },  
> ]);

Hey @Support-Luis , thanks a lot for getting back to me.

Apologies if I wasn’t clear, [here’s](https://www.loom.com/share/4decc9b90778412dac295f5d9fbc57fd) a new video. What I noticed is that the setup is correct, but for some reason it doesn’t load properly when opening the site for the first time. After I refresh 1-2x, it clicks 100%

If you could give me any tips, that’d be more than great.

Thanks a lot.

Bests,  
Bence

---

<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:** [February 24, 2024, 2:33pm UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/6 "2024-02-24T14:33:07Z")

</div>

Hey @de.skaaa! These two solutions need the extra code as they don’t work together out of the box as the items need to be nested before the collection is moved to the tabs.

You are only missing the `defer fs-attributes-preventload='true'` setting for the CMS Tabs Script. Adding that and the code supplied should make the solution work as you need it to 🙂

---

<div class="post-metadata">

**Author:** ![de.skaaa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/de.skaaa/32/3766_2.png) [@de.skaaa](https://forum.finsweet.com/u/de.skaaa)\
**Post date:** [February 26, 2024, 9:24am UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/7 "2024-02-26T09:24:21Z")

</div>

ah thanks a lot @Support-Luis , I really appreciate your help.

However, I still think that the setup is really not intuitive, there’s no tutorial for this kind of setup, only the cloneable page, again with no instructions, just saying that ‘check the setup in the cloneable’.

other than that, great solution, but I think a lot of time could have been saved with a better explanation.

---

<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:** [February 26, 2024, 9:27am UTC](https://forum.finsweet.com/t/cms-nest-tab-combo-doesnt-work-on-first-load-solved/2542/8 "2024-02-26T09:27:57Z")

</div>

thank you for the feedback @de.skaaa! We are currently reworking our documentation and all this will be taken care of.

We are very excited to share the new docs with everyone!
