Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:14:01+00:00 2026-05-31T04:14:01+00:00

Disclaimer: Do not try this at home Why, if I am using jQuery, does

  • 0

Disclaimer: Do not try this at home


Why, if I am using jQuery, does $($) freeze the page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:14:03+00:00Added an answer on May 31, 2026 at 4:14 am

    $($) is a shortcut for $(document).ready($). So, it will run the function (when the DOM is ready or directly when this is already the case).

    The function passed to .ready is passed the jQuery function for convenience (especially useful when you’re in noConflict mode). So, $($) will call $ with $ as argument – and everything will happen again, which is endless recursion.


    Another explanation:

    1. You call $($).
    2. jQuery adds the function argument ($) to an internal ready list.
    3. Some time later, jQuery sees that the DOM is ready and thinks: “Let’s call all functions in the ready list”.
    4. The only function in the ready list is $, so it calls $.
    5. jQuery sees it should pass the $ function as the argument to those functions.
    6. It calls $ with $ as argument.
    7. The $ function sees a function as its argument, but because the DOM is ready, it calls the function directly (there is nothing to wait for).
    8. The $ function is called with $ as the argument.
    9. Everything happens again since step 7 applies.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer: This is not actually a programming question, but I feel the audience on
Disclaimer This is not strictly a programming question, but most programmers soon or later
Disclaimer: this is not a question about how to install asp.net or an application
Disclaimer: This is for a homework assignment, but the question is not regarding the
Full disclaimer: this is not really a homework, but I tagged it as such
DISCLAIMER: This is not a real-world example. It is just a theoretical question of
(Firstly, as a disclaimer, this is related to an assignment. I'm not asking anyone
Disclaimer : this is not a how to question. I would more like to
Disclaimer: This question is not about fixing visual studio So, I've used VSS for
Disclaimer This is not a question about whether we should be escaping for database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.