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
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

Let your crypto work for you

Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
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