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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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