metarhia/swayer

Server side integration

Opened this issue · 0 comments

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.