Skip to content

jQuery.ready queue to enable async loading of jQuery.

Notifications You must be signed in to change notification settings

ArekZw/jquery-stub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Stub

Inline jQuery(function(){}) and jQuery.ready queue to enable async loading of jQuery. It also queues jQuery.noConflict.

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

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

You could use fn.toString() and a regular expression to selectively set the dependencies.

$async.js({
    src: '', // to save size, $async does not verify src and fails when omitted.
    inline: callback_name + '();', 
    dependencies: 'jquery', 
    exec_timing: 'requestIdleCallback'
});

About

jQuery.ready queue to enable async loading of jQuery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published