# Defer fs-attributes-preventload="true" - how in v2?

**URL:** <https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834>\
**Category:** Attributes\
**Tags:** attributes-v2\
**Created:** [May 17, 2025, 3:03pm UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834 "2025-05-17T15:03:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/matt5/32/3671_2.png) [@matt5](https://forum.finsweet.com/u/matt5)\
**Post date:** [May 17, 2025, 3:03pm UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834/1 "2025-05-17T15:03:04Z")

</div>

Hi team,

Maybe I’ve missed the documentation for this, but in v2 how do you defer a solution from loading so that you can call and initiate later? My use case is that I need to load combobox after CMS Load:

script async src=“[https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js](https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js)”\>\</script

window.fsAttributes = window.fsAttributes ||   
window.fsAttributes.push([  
“cmsload”,  
() =\> {  
window.fsAttributes.combobox.init();  
},  
])  
}

Thanks!

---

<div class="post-metadata">

**Author:** ![Support-Pedro](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-pedro/32/6470_2.png) [@Support-Pedro](https://forum.finsweet.com/u/Support-Pedro)\
**Post date:** [May 17, 2025, 10:49pm UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834/2 "2025-05-17T22:49:33Z")

</div>

Hi @matt5!

Could you share a read-only link so I can take a closer look and test something?

---

<div class="post-metadata">

**Author:** ![matt5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/matt5/32/3671_2.png) [@matt5](https://forum.finsweet.com/u/matt5)\
**Post date:** [May 18, 2025, 2:31pm UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834/3 "2025-05-18T14:31:07Z")

</div>

Hi Pedro,

If you look at the home page, the FS solution scripts are in the page head code but the combobox init() call is on an external .js file which is loaded using a script tag in the global footer code. Not sure if this will effect your testing.

[Read only](https://preview.webflow.com/preview/myhomeabroad?utm_medium=preview_link&utm_source=designer&utm_content=myhomeabroad&preview=df93ad51547fdf60f0f88187bf3261a5&workflow=preview)  
[External script](https://assets.myhomeabroad.co.uk/js/global/body.js)

Thanks!

---

<div class="post-metadata">

**Author:** ![Support-Pedro](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-pedro/32/6470_2.png) [@Support-Pedro](https://forum.finsweet.com/u/Support-Pedro)\
**Post date:** [May 24, 2025, 6:11pm UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834/4 "2025-05-24T18:11:15Z")

</div>

Hi @matt5!

I talked with the team, and you can load the solution programmatically at any moment using `window.FinsweetAttributes.load('combobox')`

Here are some examples:

```auto
<script>
 // It can be inside the List callback or any other solution
  window.FinsweetAttributes = window.FinsweetAttributes || [];
  window.FinsweetAttributes.push([
    'list',
    (listInstances) => {
      console.log('List Successfully loaded!');
      const [listInstance] = listInstances;
    },
  ]);

  // Or you can load the page without any solution and start it like this
  window.FinsweetAttributes = window.FinsweetAttributes || [];
  window.onload = function () {
    console.log('Window has loaded!');
    window.FinsweetAttributes.load('combobox');

    // do something else
  };
</script>

```

See the API full info:

> **[attributes/packages/attributes at master · finsweet/attributes](https://github.com/finsweet/attributes/tree/master/packages/attributes#methods)**
>
> Finsweet Attributes monorepo. Contribute to finsweet/attributes development by creating an account on GitHub.

Let me know if you need any help!

---

<div class="post-metadata">

**Author:** ![matt5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/matt5/32/3671_2.png) [@matt5](https://forum.finsweet.com/u/matt5)\
**Post date:** [May 25, 2025, 7:06am UTC](https://forum.finsweet.com/t/defer-fs-attributes-preventload-true-how-in-v2/4834/5 "2025-05-25T07:06:29Z")

</div>

So for my case I would do this:

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

<script>
 // It can be inside the List callback or any other solution
  window.FinsweetAttributes = window.FinsweetAttributes || [];
  window.FinsweetAttributes.push([
    'list',
    (listInstances) => {
      window.FinsweetAttributes.load('combobox');
    },
  ]);
</script>

```

That makes sense, thanks!
