# CMS Load and too many pages

**URL:** <https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352>\
**Category:** Attributes\
**Tags:** cmsload\
**Created:** [September 2, 2024, 4:32pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352 "2024-09-02T16:32:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marc/32/1583_2.png) [@Marc](https://forum.finsweet.com/u/Marc)\
**Post date:** [September 2, 2024, 4:32pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/1 "2024-09-02T16:32:03Z")

</div>

Hey,

I have set up CMS Load with pagination a couple of times already.

Currently, though, I have a project where the pagination pages are not being calculated correctly: there should be 3 pages, but it shows 5.

It is like two pages are being duplicated and appended. I double-checked everything and everything is configured exactly like in another project where everything is working just fine.

Has this been an issue for somebody before, maybe, and there is an easy fix, hopefully?

Thank you.

**Settings in Designer**  
 ![dipuentes MT 2024-09-02 at 17.28.41](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/4/4c8445b39654ca0574dc589c9f33157609414ac4.png)

**Display in Designer**

 ![dipuentes MT 2024-09-02 at 17.28.48](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/4/4b67dfbad5322ae3247b7d6c8ece5e88314b816a.png)

**Display on published page**

 ![dipuentes MT 2024-09-02 at 17.28.54](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/e/e63913f3f4ebbf438b37acca584537e847febe25.png)

---

<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:** [September 2, 2024, 5:04pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/2 "2024-09-02T17:04:21Z")

</div>

Hey @Marc! I do not remember any issue like this, can you share a link?

---

<div class="post-metadata">

**Author:** ![Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marc/32/1583_2.png) [@Marc](https://forum.finsweet.com/u/Marc)\
**Post date:** [September 2, 2024, 5:32pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/3 "2024-09-02T17:32:49Z")

</div>

@Support-Luis Yeah, it’s a bit weird! Here is the link: [Webflow Ratgeber | Flow Experts](https://flowexperts-io.webflow.io/ratgeber)

I also tested with the support script.

---

<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:** [September 2, 2024, 5:58pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/4 "2024-09-02T17:58:15Z")

</div>

Can you share a read-only? Take a look at how mine loaded 🤔

 ![Screenshot 2024-09-02 at 19.57.50](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/e/e7b03c02acb500d0a14ba724f7b3a87eec3727e4.jpeg)

---

<div class="post-metadata">

**Author:** ![Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marc/32/1583_2.png) [@Marc](https://forum.finsweet.com/u/Marc)\
**Post date:** [September 2, 2024, 6:07pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/5 "2024-09-02T18:07:24Z")

</div>

@Support-Luis woooot is going on?! 🙂

Here is the read-only:  
[https://preview.webflow.com/preview/flowexperts-io?utm\_medium=preview\_link&utm\_source=designer&utm\_content=flowexperts-io&preview=5ae96d2137d9ce00c41a2893e5437fe7&pageId=65fb10f6412b427f2dd7f338&locale=en&workflow=preview](https://preview.webflow.com/preview/flowexperts-io?utm_medium=preview_link&utm_source=designer&utm_content=flowexperts-io&preview=5ae96d2137d9ce00c41a2893e5437fe7&pageId=65fb10f6412b427f2dd7f338&locale=en&workflow=preview)

---

<div class="post-metadata">

**Author:** ![Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marc/32/1583_2.png) [@Marc](https://forum.finsweet.com/u/Marc)\
**Post date:** [September 2, 2024, 6:31pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/6 "2024-09-02T18:31:56Z")

</div>

Sorry, I played around with it and had the element removed – I added/rebuild the component now again – same odd behaviour is back.

---

<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:** [September 3, 2024, 12:47pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/7 "2024-09-03T12:47:10Z")

</div>

Hey @Marc! I’ve played around with the page a bit, there is no issue with the setup.

I just noticed that the script on the published page is

```js
<script
  type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js"
  class="_iub_cs_activate _iub_cs_activate-activated"
  data-iub-purposes="1,sh"
  data-cmp-info="2"
  async="false"
  data-cmp-ab="2"
></script>

```

instead of the usual

```js
<!-- [Attributes by Finsweet] CMS Load -->
<script async src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js"></script>

```

I believe this is added by iubenda which may be initiating the library twice, as I can replicate by preventing the load and manually triggering it twice (see video below)

https://www.loom.com/embed/f7684a47a2a3418fbd4c30cf88826569

Let me know what you think!

---

<div class="post-metadata">

**Author:** ![Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marc/32/1583_2.png) [@Marc](https://forum.finsweet.com/u/Marc)\
**Post date:** [September 3, 2024, 1:14pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/8 "2024-09-03T13:14:47Z")

</div>

You are the hero! You found it! 🙌

In hindsight, it’s clear again which part of the puzzle was messing it up. But scripting and script-execution sequences are slightly out of my comfort-zone, so I didn’t see it.

Thank you, huge amounts! 🙏

For future reference or others that might run into this bit of weird behavior: if you also use Iubenda for cookie blocking you can add:

```auto
data-cmp-ab="2"

```

to the script tag. This tells Iubenda that this script is harmless and doesn’t block it (and hence doesn’t reload it again, after accepting the cookies).

---

<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:** [September 3, 2024, 1:16pm UTC](https://forum.finsweet.com/t/cms-load-and-too-many-pages/3352/9 "2024-09-03T13:16:08Z")

</div>

Great to hear it was a simple fix! And thank you for sharing more info!
