Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightweight Concur.Static HTML implementation #19

Closed
bbarker opened this issue May 21, 2019 · 2 comments
Closed

Lightweight Concur.Static HTML implementation #19

bbarker opened this issue May 21, 2019 · 2 comments

Comments

@bbarker
Copy link
Contributor

bbarker commented May 21, 2019

I'm wondering if, for pages where the DOM only needs to be modified once and not updated multiple times, if a lightweight HTML implementation that just makes use of e.g. createElement and no other dependencies except Web.DOM (I think), would make sense?

Maybe there aren't many people writing such static displays - but as someone writing a widget intended to be integrated into 3rd party websites, the idea is appealing. With closure compiler I have my app size down to about 300K, but this could probably take it down further.

I guess the types of DOM functions might have to be specialized somewhat to always return forall a. Widget HTML a, since the widgets are static, they can never end and return a value.

@ajnsit
Copy link
Member

ajnsit commented Jun 4, 2019

It does make sense, and I've thought about doing something similar for say server side rendering.

You can currently perform server side rendering by simply discharging the widget once and getting a view, and then throwing the rest of the widget away. But on the server, having to load the entire React library is probably overkill.

I guess this fits in with the other issue (#14) about abstracting the DOM methods to allow putting in alternative backend implementations. Should we close this issue here and continue the discussion in that issue?

@bbarker
Copy link
Contributor Author

bbarker commented Jun 4, 2019

Sure, sounds good.

@bbarker bbarker closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants