6 ms·
Somewhat off topic but this Lite version made me think of something. Is there any engine/browser mode/something that lets go of legacy JS/CSS/HTML and increase
by pier25 7y ago
Somewhat off topic but this Lite version made me think of something.
Is there any engine/browser mode/something that lets go of legacy JS/CSS/HTML and increases performance/weight/memory consumption?
A browser/JS engine with removed legacy support would in principle be much faster, no?
- jitl 7y agoWhat is “legacy” JS? with()/eval()? What is “legacy” CSS? Box model? What is “legacy” HTML? <br>?
- jannes 7y agoWhat do you consider legacy JS/CSS/HTML? Do you mean HTML features like contentEditable? Do you mean JS eval()?
- The_rationalist 7y agoDocument.write()
- Steltek 7y agoDon't you get the same effective perf benefit by marking your script async defer?
- pier25 7y agoFrom the top of my head: CSS floats, contentEditable, execCommand.
- angrygoat 7y agoHow are you going to define legacy? I'm not sure how you could whittle down the web platform in an agreed way.
- dictum 7y agoHTML has something of a legacy mode, https://en.m.wikipedia.org/wiki/Quirks_mode https://en.m.wikipedia.org/wiki/Quirks_mode Roughly anything before HTML5/4.01 and XHTML renders in quirks mode. AFAIK there are no legacy CSS properties. Only nonstandard (i.e. prefixed or experimental and never published in finished specs) properties have been deprecated. Browsers already have some leeway with DOM APIs. https://developers.google.com/web/updates/2017/01/scrolling-intervention https://developers.google.com/web/updates/2017/01/scrolling-...
- jcranmer 7y agoQuirks mode can largely be described with a quirks-mode stylesheet that applies several custom styles to all elements unless otherwise overridden.
- the8472 7y agoRemove javascript, instant "lite" version. You can even disable it with a CSP header.
- untog 7y agoSciter is maybe close: https://sciter.com/ https://sciter.com/ It allows you to make desktop apps with HTML/CSS, but it has its own custom engine that doesn't support all the quirks the web does.
- ktpsns 7y agoInteresting. What's the name of the engine, and is it open source?
- pier25 7y ago5MB! Anyone knows how is the performance?
- Koshkin 7y ago> Script > (tbd)
- JasonFruit 7y agoIt has scripting available in a JavaScript-like language. I'm not able to tell yet how mature it is as I've only done a brief test.
- t0astbread 7y agoThis looks interesting but the code samples look like they include non-standard features (if I'm not mistaken). Is this compatible out of the box with (most) modern web apps? Because that's the real value of Electron.
- pier25 7y ago> Is this compatible out of the box with (most) modern web apps? Because that's the real value of Electron. No it's not. It uses its own JS-like scripting language, and custom CSS 3 support. A couple of months ago the author suggested on Reddit he might start working on an Electron alternative that used Node + Sciter. https://www.reddit.com/r/programming/comments/a8vkzm/sciternode_as_an_alternative_to_electron/ece54af/ https://www.reddit.com/r/programming/comments/a8vkzm/scitern...
- Hixie 7y agoThat's literally how Flutter started. "What if we don't have to be backwards compatible? Let's delete the HTML parsing quirks... and expensive CSS selectors... and... all of the DOM... and JavaScript... and why do we have markup even..."
- bla3 7y agoHow would you say has that worked out?
- sebe 7y agoThey've made a lot of progress, check out https://flutter.dev/ https://flutter.dev/ They're expanding from mobile, ios and android, working on flutter for desktop and web. They move to the dart language early on in their experiment. Dart has an online playground https://dartpad.dev https://dartpad.dev which has experimental flutter mode. Found this flutter hello world! example, don't know how long the link will work. https://dartpad.dev/experimental/embed-new-flutter.html?id=264658794ffe362757ad553f879990c7 https://dartpad.dev/experimental/embed-new-flutter.html?id=2...