CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Fri, 10 Oct 2025 22:48:15 GMT
Content-Type: text/html
Content-Length: 162
Location: https://bugs.jquery.com/ticket/11719/
Connection: keep-alive
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 10 Oct 2025 22:48:15 GMT
Content-Type: text/html
Last-Modified: Wed, 18 Sep 2024 14:30:33 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"66eae409-2df5"
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
Content-Encoding: gzip
#11719 (Deprecate .bind("ready") event) - jQuery - Bug Tracker
jQuery issues have moved to GitHub. This site is now a static archive of the old Trac bugs site. Some functions and pages are no longer available.
Skip to main content
Bug Tracker
Side navigation
#11719 closed enhancement (fixed)
Opened May 07, 2012 03:01PM UTC
Closed May 21, 2012 03:18AM UTC
Deprecate .bind("ready") event
Reported by: | dmethvin | Owned by: | dmethvin |
---|---|---|---|
Priority: | low | Milestone: | 1.8 |
Component: | event | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The "ready" **event** is error prone because users may attach an event handler after it has fired. It is much more natural for ready semantics to follow the Promise model; if handlers are added after the document is ready then they will fire. We're adding a ready Promise in 1.8 (see #11470) and of course the standard $(fn)
or $().ready(fn)
continue to work without change.
Let's deprecate the ready **event** as of 1.8; there is no hurry to remove it, but let's help users avoid dumb errors caused by dumb APIs.
Attachments (0)
Change History (2)
Changed May 07, 2012 03:04PM UTC by dmethvin comment:1
component: | unfiled → event |
---|---|
milestone: | None → 1.8 |
owner: | → dmethvin |
priority: | undecided → low |
status: | new → assigned |
Changed May 21, 2012 03:18AM UTC by dmethvin comment:2
resolution: | → fixed |
---|---|
status: | assigned → closed |
Documentation updated.
Just to be absolutely clear what is being deprecated here, it is these forms:
Where "ready" is a custom event name that is only fired **once** by jQuery when the document becomes ready.