fastdom

Eliminates layout thrashing by batching DOM measurement and mutation tasks (by wilsonpage)

Fastdom Alternatives

Similar projects and alternatives to fastdom

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better fastdom alternative or higher similarity.

fastdom reviews and mentions

Posts with mentions or reviews of fastdom. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-02.
  • If Web Components are so great, why am I not using them?
    12 projects | news.ycombinator.com | 2 Aug 2023
    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
    9 projects | news.ycombinator.com | 7 May 2022
  • Notes on the Critical Rendering Path (CRP)
    1 project | dev.to | 25 Apr 2022
    batching your writes & reads to the DOM (via FastDOM or a virtual DOM implementation).
  • Performance tips for JavaScript Game Developers
    1 project | /r/incremental_games | 23 Apr 2021
    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.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 28 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic fastdom repo stats
4
6,772
2.9
2 months ago

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com