# Bubble make Xano API calls for hidden elements

**URL:** <https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160>\
**Category:** APIs\
**Created:** [August 16, 2022, 8:32am UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160 "2022-08-16T08:32:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmagdanski](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pmagdanski](https://forum.bubble.io/u/pmagdanski)\
**Post date:** [August 16, 2022, 8:32am UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/1 "2022-08-16T08:32:03Z")

</div>

Hi all,  
I’m using bubble with Xano as a backend. Right now I’m building a single page app and I’ve noticed that Bubble is making request to Xano from elements which are hidden. It is slowing the page down heavily. Does someone encountered similar issues and know how to solve it and force bubble to only call requests connected with elements which are currently visible?

Thank you in advance for help

---

<div class="post-metadata">

**Author:** ![fivemeasures](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fivemeasures/32/69722_2.png) [@fivemeasures](https://forum.bubble.io/u/fivemeasures)\
**Post date:** [August 23, 2022, 6:49am UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/2 "2022-08-23T06:49:12Z")

</div>

Just wanted to say +1 on this topic.

API calls that rely on action: data seem to trigger even if their group/repeating group are hidden.

---

<div class="post-metadata">

**Author:** ![Future](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/future/32/126701_2.png) [@Future](https://forum.bubble.io/u/Future)\
**Post date:** [August 23, 2022, 4:00pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/3 "2022-08-23T16:00:17Z")

</div>

Yep. Ran into same issue…

I now let the data source empty… and put a condition in the condition tab : When this element is visible : Data source = my api call.

---

<div class="post-metadata">

**Author:** ![pmagdanski](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pmagdanski](https://forum.bubble.io/u/pmagdanski)\
**Post date:** [August 23, 2022, 4:14pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/4 "2022-08-23T16:14:14Z")

</div>

Yeah that’s what I did as well, but I can’t use it everywhere, in some cases it does not work for me. I that problem should be handled somehow by Bubble team. I’ve from some other people that they are having trouble with this as well.

---

<div class="post-metadata">

**Author:** ![Future](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/future/32/126701_2.png) [@Future](https://forum.bubble.io/u/Future)\
**Post date:** [August 23, 2022, 4:19pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/5 "2022-08-23T16:19:52Z")

</div>

if you want, explain where it doesn’t work… I managed to make it work everywhere.

---

<div class="post-metadata">

**Author:** ![viquarahmed07](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/viquarahmed07/32/145585_2.png) [@viquarahmed07](https://forum.bubble.io/u/viquarahmed07)\
**Post date:** [August 23, 2022, 4:20pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/6 "2022-08-23T16:20:56Z")

</div>

Hey @Future 👋

How did i miss this 🤦‍♂️

Thanks 👍

---

<div class="post-metadata">

**Author:** ![pmagdanski](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pmagdanski](https://forum.bubble.io/u/pmagdanski)\
**Post date:** [August 25, 2022, 3:51pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/7 "2022-08-25T15:51:37Z")

</div>

For example. I have a data source which right now is bond with only two groups. I’ve tried to leave default data source blank and make conditional and I’ve tried to leave it blank and display data via workflow when condition of visibility is true. In both cases when neither of elements was visible bubble makes calls for this endpoints (which fails, because of wrong inputs) anyways.

---

<div class="post-metadata">

**Author:** ![pmagdanski](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pmagdanski](https://forum.bubble.io/u/pmagdanski)\
**Post date:** [August 25, 2022, 4:31pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/8 "2022-08-25T16:31:47Z")

</div>

When I try to display data via workflow on condition something interesting is happening. Page was loaded correctly during normal navigation, but when I was refreshing the page, the dynamic data were empty.

---

<div class="post-metadata">

**Author:** ![Future](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/future/32/126701_2.png) [@Future](https://forum.bubble.io/u/Future)\
**Post date:** [August 26, 2022, 1:43pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/9 "2022-08-26T13:43:36Z")

</div>

Most of the time, it’s really just a matter of what will bubble generate first… for example, if it’s not visible because another element is over it but it’s still checked “display on page load”, it will trigger the condition “When this element is visible” (even if you don’t see it), actually it even goes for a reusable group, you sometime think it’s not visible but bubble will generate it… Hope you’ll work it out.

---

<div class="post-metadata">

**Author:** ![pmagdanski](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pmagdanski](https://forum.bubble.io/u/pmagdanski)\
**Post date:** [August 26, 2022, 2:22pm UTC](https://forum.bubble.io/t/bubble-make-xano-api-calls-for-hidden-elements/220160/10 "2022-08-26T14:22:22Z")

</div>

I have everything unchecked in “display on load” I’m showing elements via parameters. I think in this case conditions are causing this
