metarhia / swayer

Schema based frontend framework 👀
MIT License
52 stars 11 forks source link

Server side integration #13

Open rohiievych opened 2 years ago

rohiievych commented 2 years ago

Is your feature request related to a problem? Please describe. Although element creation is fast enough in browser, it gets additional CPU work, which can affect mobile devices.

Describe the solution you'd like We can skip runtime element creation by leveraging server side rendering with libs like domino to precompile markup and improve framework performance.

Describe alternatives you've considered Currently markup is generated only in browser with standard web api.

Additional context It's possible to add ahead of time schema compilation on server as well as realtime server side rendering. This will open the opportunity of sending compiled markup with websockets from server to client.