What I’m trying to do:
Measuring the speed and optimizing my Apps.
What I’ve tried and what’s not working:
Using measuring websites such as PageSpeed or using DevTools to check loading speeds.
I would like to know if there is any insights into how we can measure our Apps for optimization because running an empty Anvil App gives about a 92% score for desktop, but a 32% score for mobile (the empty materials UI design). What can we as App creators do to realistically measure the speed of our Apps?
I have been indulging in speed tests myself lately. And unfortunately, you can only improve your score up to a certain limit. The loading size of your anvil app will increase with each line of code you write so it’s highly likely for your app to have a bad score.
But those tests don’t know that your site is a SPA. All Single Page Applications have bad scores on speed tests because they load everything at once. Nobody will count the fact that, unlike normal websites, there will be no loading after the initial loading.
So the only thing you can do is to try and fix as many problems as you can. All Speed Tests come with reasons and solutions attached to every problem.
And if you are interested in something advanced, you can try to implement something like Server Side Routing Attempt and no longer make your app behave like a SPA
2 Likes
@divyeshlakhotia This is some great insight, thank you!