layout-queue v1.0.0 is a lightweight JavaScript library that manages sequential execution of layout-affecting actions on window resize, preventing race conditions. Developed by davejtoews, it queues functions and triggers them in order on window load and resize events, with support for custom triggers (e.g., AJAX, iframe load). Alternative to manual resize handlers or debouncing, it ensures predictable execution order. No updates since initial release; stable but low maintenance.
npm install layout-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing LayoutQueue, adding a function with arguments, triggering execution, listing, and clearing the queue.
Ensure you call LayoutQueue.trigger() manually if needed, or rely on default resize/load events.
Check with LayoutQueue.list() before adding or clear/re-add as needed.
Pin to exact version 1.0.0 and test thoroughly; consider alternatives if more features are needed.
Use `import LayoutQueue from 'layout-queue'` with a bundler or use bundle.js script tag.
Add <script src='bundle.js'> before using LayoutQueue, or ensure ES module import is supported.
No dependency data recorded yet.