Eliminates layout thrashing by batching DOM read/write operations (~600 bytes minified gzipped). FastDom works as a regulatory layer between your app/library and the DOM. By batching DOM access we avoid unnecessary document reflows and dramatically speed up layout performance. Each measure/mutate job is added to a corresponding measure/mutate queue. The queues are emptied (reads, then writes) at the turn of the next frame using window.requestAnimationFrame. FastDom aims to behave like a singleton across all modules in your app. When any module requires 'fastdom' they get the same instance back, meaning FastDom can harmonize DOM access app-wide. Potentially a third-party library could depend on FastDom, and better integrate within an app that itself uses it. It's very important that all DOM mutations or measurements go through fastdom to ensure good performance; to help you with this we wrote fastdom-strict.

Features

  • The core fastdom library is designed to be as light as possible
  • Additional functionality can be bolted on in the form of 'extensions'
  • Fastdom ships with some extensions
  • FastDom is CommonJS and AMD compatible
  • Potentially a third-party library could depend on FastDom
  • FastDom aims to behave like a singleton across all modules in your app

Project Samples

Project Activity

See All Activity >

Categories

Object Oriented

License

MIT License

Follow FastDom

FastDom Web Site

Other Useful Business Software
99.99% Uptime for MySQL and PostgreSQL on Google Cloud Icon
99.99% Uptime for MySQL and PostgreSQL on Google Cloud

Enterprise Plus edition delivers sub-second maintenance downtime and 2x read/write performance. Built for critical apps.

Cloud SQL Enterprise Plus gives you a 99.99% availability SLA with near-zero downtime maintenance—typically under 10 seconds. Get 2x better read/write performance, intelligent data caching, and 35 days of point-in-time recovery. Supports MySQL, PostgreSQL, and SQL Server with built-in vector search for gen AI apps. New customers get $300 in free credit.
Try Cloud SQL Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of FastDom!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Object Oriented Software

Registered

2021-09-06