Open olemartinorg opened 1 year ago
We could also bundle static data like applicationMetadata
, layoutSets
++ into a script-tag so that the static data that never changes is available immediately, not requiring a bunch of get-requests after initially loading.
@bjosttveit footer.json
?
Sure 😅
Description
I spent a little time investigating how, and I think I found a fitting solution for how to use ASP.NET MVC to build the Index.cshtml file instead of having each app maintaining it by themselves. Right now we have lines in that file like:
And the corresponding stylesheet in the header:
We also have a script that sets
window.org
andwindow.app
from the URL. All of these are implementation specifics for app-frontend, and they're irrelevant for most app developers. Most apps use the default version of this file, never changing it. Some add their own scripts and styles (which is needed for custom web components), but most don't.We should have better control here:
App.csproj
like the backend versions).Additional Information
109