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
Paessler - Monitor Your Whole Network in Minutes Icon
Paessler - Monitor Your Whole Network in Minutes

Auto-discovery finds your devices and deploys pre-configured sensors instantly. No project plan required, just visibility from day one.

Waiting weeks for a monitoring rollout isn't an option when infrastructure doesn't stop running. PRTG's auto-discovery scans your network and suggests from over 200 pre-configured sensor types, so you're watching servers, applications and devices within minutes, not after a multi-week deployment. Enterprise-strength monitoring, without the enterprise complexity. Start your free trial today.
Start Free 30-Day Trial
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