fastdom
modern-todomvc-vanillajs
fastdom | modern-todomvc-vanillajs | |
---|---|---|
4 | 19 | |
6,779 | 1,065 | |
- | - | |
2.9 | 4.9 | |
3 months ago | 2 months ago | |
JavaScript | CSS | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fastdom
-
If Web Components are so great, why am I not using them?
Now, every time we read `offsetHeight`, the browser sees that it has a scheduled DOM modification to apply, so it has to apply that first, before it can return a correct value.
This is the reason that libraries like fastdom (https://github.com/wilsonpage/fastdom) exist - they help ensure that, in a given tick, all the reads happen first, followed by all the writes.
That said, I suspect even if you add a write followed by a read to your `while(1)` experiment, it still won't actually render anything, because painting is a separate phase of the rendering process, which always happens asynchronously. But that might not be true, and I'm on mobile and can't test it myself.
- TodoMVC App Written in Vanilla JavaScript
-
Notes on the Critical Rendering Path (CRP)
batching your writes & reads to the DOM (via FastDOM or a virtual DOM implementation).
-
Performance tips for JavaScript Game Developers
For more information on how and why this works, and a more robust and complete implementation, check out the FastDom library: https://github.com/wilsonpage/fastdom - note that you might not need this particular optimization if you're using a rendering framework, which should already be doing these sorts of optimisations for you.
modern-todomvc-vanillajs
- Writing a TodoMVC App with Vanilla JavaScript in 2022
- Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS
- Writing a TodoMVC App with Vanilla JavaScript
-
React I Love You, but You're Bringing Me Down
> React takes us forward in the sense that most of us don't want to go back to direct DOM manipulation
There was recently a demo of what a Todo MVC app might look like if written in vanilla JS with today's apis. It looks fairly decent; I could see myself going back to something like that:
https://frontendmasters.com/blog/vanilla-javascript-todomvc/
- Writing a TodoMVC App With Vanilla JS in 2022
-
Ask HN: What happened to vanilla HTML/CSS/JS development?
>> Does not trigger when modified from the same page
I'm thinking that's the purpose of https://github.com/1Marc/todomvc-vanillajs-2022/blob/main/js... - without dispatching that custom save event, there wouldn't be a way to react at any other locations on the same page to the store updating.
- GitHub - 1Marc/todomvc-vanillajs-2022: Vanilla JS TodoMVC App in 2022
- TodoMVC App Written in Vanilla JavaScript
What are some alternatives?
mebm - zero-dependency browser-based video editor
Tailwind CSS - A utility-first CSS framework for rapid UI development.
react-gradual-upgrade-demo - Demonstration of how to gradually upgrade an app to a new version of React
htmx - </> htmx - high power tools for HTML
yhtml - Tiny html tag function for rendering Web Component templates with event binding
el - Minimal JavaScript application framework / WebComponents base class
uibuilder - Typed HTML templates using TypeScript's TSX files
custom-elements - Using custom elements
domdiff - Diffing the DOM without virtual DOM
proposal-import-attributes - Proposal for syntax to import ES modules with assertions
uhtml - A micro HTML/SVG render