jquery / jquery/api.jquery.com

Incorrect signature of .ready() handler

Open
#1,167 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
325
Forks
260
PR merge metrics
No merged PRs in 30d

Description

The reference documentation for .ready() handler does not specify any argument for the signature of the handler. However, the jQuery object is actually provided, which is quickly explained later in the section Aliasing the jQuery Object. This can be easily missed (like I did) and lead to writing incorrect code (like making jQuery triggering the ready event endlessly).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reference documentation section for the .ready() handler and compare its signature with the later “Aliasing the jQuery Object” explanation. Update the handler signature or nearby wording so the provided jQuery object is clear, then verify that the documentation consistently describes the argument and its usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
jquery
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.