News for hackers. Stuff that matters.
Re:Svelte is the most beautiful web framework I've seen by gridlockd on Tuesday July 02, 2019 @12:21PM (#20336621)
No framework can fully eliminate the underlying performance sinkhole that is the DOM. If you have to mutate, you will pay the price, period. The smartest framework can only help you eliminate redundant mutations.
Re:Svelte is the most beautiful web framework I've seen by onion2k on Tuesday July 02, 2019 @12:46PM (#20336885)
By the sounds of it the DOM itself shouldn't be changing though, just the text in text nodes and style attributes. It should be fast.
Re:Svelte is the most beautiful web framework I've seen by mfatica on Tuesday July 02, 2019 @12:49PM (#20336923)
text nodes and style attributes are part of "the DOM itself"
Re:Svelte is the most beautiful web framework I've seen by hanniabu on Tuesday July 02, 2019 @03:11PM (#20338389)
What are alternatives?
Re:Svelte is the most beautiful web framework I've seen by gridlockd on Tuesday July 02, 2019 @03:21PM (#20338489)
For dynamic content, the only alternative to DOM manipulation is rendering to a canvas element.
Re:Svelte is the most beautiful web framework I've seen by hanniabu on Tuesday July 02, 2019 @07:30PM (#20340316)
Can that still be interacted with? I wouldn't even know where to start to allow clicks and such.
Re:Svelte is the most beautiful web framework I've seen by gridlockd on Tuesday July 02, 2019 @08:01PM (#20340482)
A canvas element will get events like any other DOM node. From there on, it's up to you.

> I wouldn't even know where to start to allow clicks and such.

Figuring that out should be a good exercise, then. Otherwise, you might want to use some library building on top of canvas.