2.3.0 • Published 8 years ago

min-ready v2.3.0

Weekly downloads
738
License
ISC
Repository
-
Last release
8 years ago

min-ready

Build status NPM version Downloads Dependency Status

Simple ready like jQuery(func)

Installation

npm i min-ready

Usage

var ready = require('min-ready')()

ready.queue(function() {
	console.log(1)
})
ready.queue(function() {
	console.log(2)
})
ready.open()
// => 1, 2
ready.queue(function() {
	console.log(3)
})
// => 3

Simple Delay Execute

// before jquery load
var ready = require('min-ready')()

ready.queue(function() {
	var $ = this
	$('.class').html('some thing')
})

ready.queue('ajax', 'http://foo.bar.com', {success: function() {}})
// after jquery load
ready.ctx = $ // set context
ready.open()

License

License

2.3.0

8 years ago

2.2.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago