CMS Static not showing all the elements

Hello guys,

I have a project where not all the CMS Static elements are showing on the page and when I run the automated support it tells me that the cmsstatic-element attribute is not there but it is.

Here’s a small video explaining everything:

Here’s my preview link as well:

and the published site:

NOTE: It’s worth mentioning that this was working before but it stopped for some reason.

Hey @aaron! Attributes V1 is not compatible with Finsweet Components out of the box.

I seem to have this working on my end by delaying the CMS Static script until after the Slider component is loaded.

I do this by using this script on the <head>

<script
  defer
  fs-attributes-preventload="true"
  src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsstatic@1/cmsstatic.js"
></script>

and this call back on the </body> section of the custom code

<script>
  window.fsComponents = window.fsComponents || [];
  window.fsComponents.push([
    'slider',
    (sliderInstances) => {
      console.log('slider Successfully loaded!');
      window.fsAttributes.cmsstatic.init();
    },
  ]);
</script>

Let me know if this works for you!