Fix #13655. Add test for jQuery.ready.promise fallback load. Close gh-1209.