Hello,
I am working on an app with lot of features. We created this using single page app pattern where everything is in one page but as of now we have issue with page loading speed issue.
Currently this page is not loading at all in mobile using main branch.
In desktop, it is taking 15s to 65s sometimes, not sure why bubble is taking different time to load each time with same data.
I checked lot of articles on this topic and based on that I have tried below things till now:
- Removed unused plugins
- Removed unused styles etc.
- Removed unused elements from the page
- Removed unnecessary workflows and simplified it a lot.
- Tried to improve db design where I can see some issues
- I even tried to use optimize application option in settings–>general but it is giving error to me after running for many minutes.
- Removed advance filter wherever possible
- Removed unused option set as I guess it is loaded on page load
- I used developer tools of browser but could not see anything wrong there. I have attached its screenshot here.
- In developer tools, sometimes it is showing that google analytics is taking lot of time (same is shown in attached screenshot so I removed that also but it did not help much.
- I have number of popups in the app. I understand that it would load data upfront even though it is invisible but we need that though here also tried to decrease number of popups wherever possible.
- Reduce image size. I can see that bubble is already storing that in CDN which is good
- Put condition everywhere so data is fetched only when that element is getting visible
- I have already added good number of privacy rules which can bring limited data to the screen
- Archive the old data so tables can have limited data
- Checked that I have put constraint everywhere and not loading all data in my repeating groups
- Applied pagination everywhere to keep limiting data
- In my current user I don’t have any list which increase load on session data.
I am running out of ideas now except
- split the app in multi pages but I think singe page app is better.
- Is there a way where I can cache my data? I know bubble apply some caching itself.
- Is there a way to apply lazy loading concept everywhere?
- I use libraries like
quill.js for rich text editor,
tippy.js for tooltip,
lottie for animation,
slim select for advance dropdown,
toastr for toast notification
bootstrap for responsiveness
font-awesome for nice font
jquery etc. where each one is taking few milli seconds to load. Is there way I can reduce that time?
Please suggest.
Thanks,
Jigar