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

  • Home
  • SEARCH
  • 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 8666835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:49:40+00:00 2026-06-12T17:49:40+00:00

I have a situation where in a certain condition, I want whatever jQuery ready

  • 0

I have a situation where in a certain condition, I want whatever jQuery ready handlers have been bound not to actually fire on the DOMContentReady event. These handlers are bound in various places, including various include files, plugins and so on. So while I could set some kind of global variable in a script near the top of my page, and put an if condition to check for this variable in front of every $(document).ready() binding, I’d rather not.

Ideally I’m looking for one of two things,

  • a property I could set on the jQuery object before the includes that would tell it to ignore calls to .ready()
  • a method I could call towards the end of the document, in an inline script before DOMContentReady has fired, to unbind the ready() handlers.

The obvious one, $(document).unbind('ready') doesn’t do it, I guess because .ready() isn’t an ordinary event binding.

Can this be done? If so, how?

One vague idea I had would be to extend the jQuery prototype, and replace ready() with a method that would check a new property that I would introduce. Does that make sense?

  • 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-06-12T17:49:41+00:00Added an answer on June 12, 2026 at 5:49 pm

    you should use holdready

    $.holdReady(true);
    $.getScript("myplugin.js", function() {
      $.holdReady(false);
    });  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation where I want certain code to be executed no matter
Situation: I have some persons with certain skills and they can/might belong to more
I have a situation in which I don't want inserts to take place (the
I'm learning Python, and I have a situation where I want to consume items
I have a situation where a certain linq query that runs against a multi-million
I have a situation where I have an interface that defines how a certain
I have situation where I need to make sure that user has completed certain
I have a situation where I am using a list of images on certain
I have a map like this: map<prmNode,vector<prmEdge> > nodo2archi; In a certain situation, I
I have the following situation: I have a certain function that runs a loop

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.