# How to stop fetching all collection on each page load

**URL:** <https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289>\
**Category:** Ask us anything\
**Created:** [January 9, 2024, 10:48pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289 "2024-01-09T22:48:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![whcmeduk](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/whcmeduk/32/1229_2.png) [@whcmeduk](https://community.weweb.io/u/whcmeduk)\
**Post date:** [January 9, 2024, 10:48pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/1 "2024-01-09T22:48:55Z")

</div>

Recently I feel a serious slowdown on page load. I found that the collection are all fetched upon page load. Is there a way I can shut down this function?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 9, 2024, 11:12pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/2 "2024-01-09T23:12:02Z")

</div>

You can disable it in the collection settings.  
Usually it’s under Fetch Data → Advanced → Fetch this collection automatically

 ![Screenshot 2024-01-10 at 00.10.49](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a7102fdc52fa6f82d20ab34672d4321dbac4d2b5.png)

_Interesting fact: By my understanding the way collections work in WeWeb, is not that it fetches all of them, but it detects which ones are present in your page, and then it fetches only those._

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [January 9, 2024, 11:18pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/3 "2024-01-09T23:18:36Z")

</div>

If fetching collection automatically, we will indeed only fetch those collections being used on the page. If you notice a different behaviour we would like to see the logs when a page loads

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [January 31, 2024, 2:33am UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/4 "2024-01-31T02:33:26Z")

</div>

will the collection be fetched automatically even if that element that needs the collection is set to “conditional off”?

I am noticing that even though I have hidden the element that requires this collection, it still fetches it when its not required.

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 31, 2024, 3:15am UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/5 "2024-01-31T03:15:50Z")

</div>

I noticed that as well, as I have quite a few conditional elements on most pages. Ended up just turning off the auto-fetch on nearly all of the collections and explicitly fetch when needed.

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [January 31, 2024, 5:27am UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/6 "2024-01-31T05:27:09Z")

</div>

Do you fetch on page load? Wondering what’s the fastest way to fetch the collection that I actually do need, in terms of user experience.

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 31, 2024, 12:36pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/8 "2024-01-31T12:36:08Z")

</div>

Just depends. On most of my pages I have a primary record that the user is interacting with that I will fetch on page load. Each page also has several modals that conditionally open on button presses. The collections needed to interact with the modal gets fetched in the workflow that opens the modal. Then the primary gets refreshed on the modal close to refresh the page information.

FWIW, I’m using Xano. I’m also adding related record information to the primary API calls using add-ons so I’m not having to fetch multiple collections as much.

Eg. Modifying the [auth.me](http://auth.me) call by adding several commonly used fields from the user’s company record (separate table).

---

<div class="post-metadata">

**Author:** ![whcmeduk](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/whcmeduk/32/1229_2.png) [@whcmeduk](https://community.weweb.io/u/whcmeduk)\
**Post date:** [March 12, 2024, 4:01pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/9 "2024-03-12T16:01:48Z")

</div>

Same experience here. I am trying to turn off all the collections fetching as it is dragging the speed down. It doesn’t seems to fetch the used one only.

---

<div class="post-metadata">

**Author:** ![lakshya01](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lakshya01](https://community.weweb.io/u/lakshya01)\
**Post date:** [May 28, 2024, 10:13pm UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/10 "2024-05-28T22:13:47Z")

</div>

Hey Luka,

I am experiencing this problem. Even though "fetch this collection automatically’ is turned off, it still fetches the collection regardless on page load. Please any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [May 29, 2024, 8:12am UTC](https://community.weweb.io/t/how-to-stop-fetching-all-collection-on-each-page-load/6289/11 "2024-05-29T08:12:55Z")

</div>

Can you send me your editor link with instructions on which page this occurs? I’ll be happy to take a look
