# Loading of CMS items is incomplete and inconsistent

**URL:** <https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524>\
**Category:** Attributes\
**Created:** [February 19, 2024, 9:51am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524 "2024-02-19T09:51:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [February 19, 2024, 9:51am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/1 "2024-02-19T09:51:29Z")

</div>

Hi, we are about to put one of our client projects live, but I noticed the following issue: the number of items that is loaded into our collection list is different with every refresh. [Here’s a link to the page.](https://checkyourfuture.webflow.io/old-home) and [here’s a read-only link.](https://preview.webflow.com/preview/checkyourfuture?utm_medium=preview_link&utm_source=designer&utm_content=checkyourfuture&preview=3c7e7f9f08654cdd33f013698ae66ee4&locale=en&pageId=65cbeabdb8ca0a3c7b1cc336&workflow=preview) To reproduce this, just scroll down to the last row of items in the list, and hit refresh a couple of times. Am I missing something, or is something not initialized or configured correctly? Thanks in advance!

---

<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 19, 2024, 11:52am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/2 "2024-02-19T11:52:24Z")

</div>

Hey @studiopiraat! You can try adding [CMS Load](https://finsweet.com/attributes/cms-load) to your setup to ensure all items are loaded as they should.

---

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [February 20, 2024, 10:27am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/3 "2024-02-20T10:27:13Z")

</div>

Hi @Support-Luis, thanks for your reply! I added CMS Load to my page, and also added fs-cmsload-mode=“render-all” to my list. Unfortunately, it’s still not loading all items from my CMS (which currently has a total of 20 items). I added a results counter displaying how many items are in the list. Do you have any idea how to make sure all items are always loaded?

---

<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 20, 2024, 12:15pm UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/4 "2024-02-20T12:15:25Z")

</div>

@studiopiraat, Render All requires Webflow’s native pagination to be enabled.

Can you try enabling it and setting it to 10 items per page, and let me know how it goes?

---

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [February 27, 2024, 9:06am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/5 "2024-02-27T09:06:30Z")

</div>

Hi @Support-Luis, I added CMS Load to my page, turned on pagination on my Collection List, and added the attribute fs-cmsload-mode=“render-all” to my Collection List. However, it still randomly loads 16 to 21 items. (there are currently 21 items in the CMS)

I added the ‘?fs-attributes-support=true’ to my url, and it says both CMS Load and the render-all attribute is set up just fine. I also tried disabling the CMS Filter script, to see if that had something to do with it, but that didn’t seem to be the case. Any ideas on what the issue might be here?

Thanks in advance!

---

<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 27, 2024, 3:23pm UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/6 "2024-02-27T15:23:33Z")

</div>

Hey @studiopiraat! It might be due to the pagination being set way over the amount of items on the list.

Can you try something like 10 items per page instead of 100 per page?

Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [February 27, 2024, 3:26pm UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/7 "2024-02-27T15:26:15Z")

</div>

Hi @Support-Luis, I tried that as well, but it didn’t seem to fix our problem. I’ve set it to 10 per page now though, if that is of any help to you!

Edit: should my collection list have the attribute ‘fs-cmsload-mode’ set to ‘render-all’ or ‘pagination’ for it to work? My guess is ‘render-all’, right? Also, might the order of the attributes on the collection list have anything to do with our problem?

---

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [February 29, 2024, 1:35pm UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/8 "2024-02-29T13:35:08Z")

</div>

Hi @Support-Luis, this problem is solved. It turned out to be another script that was interfering with the loading of the CMS items. It runs after a small delay now, and it properly loads everything!

Thanks for your answers and effort!

---

<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 29, 2024, 2:08pm UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/9 "2024-02-29T14:08:22Z")

</div>

Hey @studiopiraat! Thanks for letting me know you got it working! Sorry for missing the extra script!

To avoid using delays you can always use the CMS Load callback to run code after the solution is done loading!

```js

<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'cmsload',
    (listInstances) => {
      console.log('cmsload Successfully loaded!');

      const [listInstance] = listInstances;
      // Run code (once) after CMS Load is done loading!

      listInstance.on('renderitems', (renderedItems) => {
        console.log(renderedItems);
        // Add code here that should run for newly rendred items
      });
    },
  ]);
</script>

```

---

<div class="post-metadata">

**Author:** ![studiopiraat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studiopiraat/32/2000_2.png) [@studiopiraat](https://forum.finsweet.com/u/studiopiraat)\
**Post date:** [March 1, 2024, 9:28am UTC](https://forum.finsweet.com/t/loading-of-cms-items-is-incomplete-and-inconsistent/2524/10 "2024-03-01T09:28:10Z")

</div>

No worries! We can’t expect you to get to know every website inside out 😉 Thanks for the provided code, seems a bit more elegant indeed! 🙌
