Maximum Size for Client code?

Hi Anvil Devs!

I have some client code which is growing ever bigger in size… Is there a maximum which I may hit at some point and should push more to the server? Are there upper limits as well for server code functions?

Thanks and sorry if this is a dumb questions!

I don’t think there is an upper limit. But the more code you add, the slower your app loads initally. So it’s always a good idea to limit your codebase. Try to reuse functions and components as much as you can

On the server side also, the amount of code shouldn’t have any noticeable impact. But any important logic should be moved there anyway

You can also have a look at minification

My largest app has approx. 0.9 million bytes of Client-side code,

1 Like