element-ready

Detect when an element is ready in the DOM

MIT License

Downloads
7.6K
Stars
429
Committers
9

Bot releases are hidden (Show)

element-ready - Latest Release

Published by sindresorhus 11 months ago

element-ready -

Published by sindresorhus over 1 year ago

element-ready -

Published by sindresorhus over 2 years ago

element-ready -

Published by sindresorhus about 3 years ago

  • Add support for specifying a predicate to find a specific element (#38) 78127f9

https://github.com/sindresorhus/element-ready/compare/v6.1.0...v6.2.0

element-ready -

Published by sindresorhus about 3 years ago

element-ready -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 7ca21b5
  • This package is now pure ESM. Please read this.

Improvements

  • Make it more strongly-typed when used with TypeScript (#35) c9e4bf0

https://github.com/sindresorhus/element-ready/compare/v5.0.0...v6.0.0

element-ready -

Published by sindresorhus almost 4 years ago

Breaking

  • Require Node.js 10
  • Wait for children before resolving promise (#30) 94a2e64
    The previous behavior was to not wait for children. Set this option to false if you only need to check if the element exists or get/set its attributes.

https://github.com/sindresorhus/element-ready/compare/v4.1.1...v5.0.0

element-ready -

Published by sindresorhus about 5 years ago

  • Fix element-ready sometimes missing the matching elements with stopOnDomReady:true (#28) 9b6ad92

https://github.com/sindresorhus/element-ready/compare/v4.1.0...v4.1.1

element-ready -

Published by sindresorhus over 5 years ago

Enhancements:

  • Add timeout option (#21) 5bd3ad4

Fixes:

  • Add types for stopOnDomReady option (#20) 08fc8ec

https://github.com/sindresorhus/element-ready/compare/v4.0.0...v4.1.0

element-ready -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#18) 513139a
  • Add stopOnDomReady option (#17) 32363fa
    It now stops looking when the DOM is ready by default.
  • Remove .cancel() in favor of .stop() (#17) 32363fa
    The difference is that calling it doesn't reject the promise, but rather resolves the promise with undefined.

Breaking for TypeScript users:

  • Refactor TypeScript definition to CommonJS compatible export (#18) 513139a
    • You need to change import elementReady from 'element-ready'; to import elementReady = require('element-ready');

https://github.com/sindresorhus/element-ready/compare/v3.1.0...v4.0.0

element-ready -

Published by sindresorhus over 5 years ago

  • Update dependencies (#15) af96d2c
  • Add TypeScript definition (#15) af96d2c

https://github.com/sindresorhus/element-ready/compare/v3.0.0...v3.1.0

Package Rankings
Top 2.98% on Npmjs.org
Top 14.76% on Bower.io