Skip to content

An inline jQuery script queue that enables more easy async loading of jQuery based scripts.

Notifications You must be signed in to change notification settings

pagespeed-pro/jquery-stub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

An inline jQuery script queue that enables more easy async loading of jQuery based scripts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published