App Line Length Limit

I'm building a floorplan app, I would like to avoid a requirement for active internet connection (CDN).
But I'm running into a problem saving the web app embedded in the smart app endpoint. I suspect I'm running into a limit in the length of an app. Is there?

When I tried saving a long, long file it caused automation to stop working. I could navigate the UI on the hub, but that was it. Reboot of course fixed it, but clearly what I'm planning is not going to work.

Post here or by PM a sample of what you're doing. There are probably limits -- don't know specifics. We can help you figure out a way to get it to work.

There is a 500,000 character limit to code being saved. Also feel free to PM me as well, we might have some ways to help with this limit as well.

I've resigned to the fact the initial page request will include some CDN and won't work without the internet, I think.