Hi, I have been developing a marketplace app. It takes so much time to load when on Live. Can somebody suggest how to make it performance effective?
- Standardising design
- Using reusable elements for almost everything
- Too many different fonts
- Compress media content
Well every app is built different but you can follow some common strategies.
While answering your questions a ton of questions come to my mind, like how big your database is, is it a one page app or multi, how many workflows are triggered on certain actions, what page do when it loads, etc etc
So there are many different answers…
Firstly you need to look for the actual cause before looking for solutions
@chris.williamson1996 does magic!
Hi @siddharth, This is not a single page application. I just found some of the reasons for slowing down, One of which is requesting user details during every page load since I am getting the user from external db and I want to store some info related to user like 4 fields in to a session object and use the data any time I want, instead of doing the api call everytime. I can store the user object using ‘Set State’ but I’m not able to send the user object as a whole across the pages. Is there a way to do so.
Another one is - It is triggering requests that are not wanted during my page load. For eg. I have a search bar in one of my page categories section that requests for items matching the input. This should be triggered only when the Input search bar’s value changes. But these requests are triggered every time the page is loaded. Can I know what to do to prevent triggering irrelevant queries?
Just use a search icon, so when users enter their input they need to click on search icon to get results. This way search is only triggered when intended.
U can use local storage plugin to store temporary data
This topic was automatically closed after 70 days. New replies are no longer allowed.