Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 663 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 663 Bytes

jQuery Stub

An inline jQuery script queue for jQuery(function(){}) and jQuery.ready that more easily enables async loading of jQuery based scripts. It also queues jQuery.noConflict.

How to use

Include jquery-stub.js before inline code that uses jQuery.

When using $async you can use jquery-stub-async.js to hook into the jQuery dependency and/or other dependencies.

You can use fn.toString() and a regular expression to selectively set the dependencies. jquery-stub-async.js provides an example.

$async.dependencies('jquery', function() {
	// .. queued inline jquery code
});