diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2016-01-19 14:47:52 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2016-04-04 11:26:22 -0400 |
commit | 5cbb234dd3273d8e0bbd454fb431ad639c7242c1 (patch) | |
tree | b3882c863f2757e7e77f16e69a6cb1dbeaea8205 /Gruntfile.js | |
parent | 6072d150d61655ec07f714e1d58a0bd7baa5ec3f (diff) | |
download | jquery-5cbb234dd3273d8e0bbd454fb431ad639c7242c1.tar.gz jquery-5cbb234dd3273d8e0bbd454fb431ad639c7242c1.zip |
Core: implement ready without Deferred
- Make jQuery.ready promise-compatible
- Gives up sync guarantee for post-ready callbacks
Fixes gh-1778
Fixes gh-1823
Close gh-2891
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 723bc12cc..c979f2822 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -63,6 +63,10 @@ module.exports = function( grunt ) { callbacks: [ "deferred" ], css: [ "effects", "dimensions", "offset" ], "css/showHide": [ "effects" ], + deferred: { + remove: [ "ajax", "effects", "queue", "core/ready" ], + include: [ "core/ready-no-deferred" ] + }, sizzle: [ "css/hiddenVisibleSelectors", "effects/animatedSelector" ] } } |