Hello bubblers,
I have a SPA with 80% RE. The RE are not visible by default, they are displayed according to the URLs.
I have a very long initial loading time (between 20 and 30 seconds) while almost no data is displayed when the page loads.
When I delete my REs from my page, the loading time is normal (less than 3 seconds). This seems to mean that the REs are loaded at the same time as the page, even though they are not visible.
Do you know why this is happening and how to fix it?
Thank you for your help!
Could you share a screenshot of your Dev tools → Network tab when loading? Let’s see what’s taking 30s to load.
Do all searches correspond to “do a search for”?
There’s a ~17s. void in the log that I’m unsure what’s about.
It’s not like it’s waiting for anything in particular.
The thing is that when I delete the reusable elements, loading time is faster which means that the issue is linked to the RE.
Yes, this is happening to me also.
Apparently, bubble runs all reusable elements at page load.
I beileve Bubble builds the DOM even with hidden elements.
What it defers is the load of any asset and data loaded by those hidden elements (and any CSS related to them, maybe? and any JS file required by them, maybe? not sure).
The only thing that I can imagine is that those REs have too many elements inside and it’s the DOM construction taking so long.
Unsure either how to solve it aside from reducing the number of elements inside REs…
Maybe someone else can chip in.
Thank you for your help.
I have also written to the support, let’s see what they suggest ..