Skip to content

Conversation

dmethvin
Copy link
Member

Fixes #225

jQuery core includes two implementations of jQuery.holdReady() and it would be tough at this point to anticipate how we might rewrite it, so I skipped trying to fill it for now at least.

@mention-bot
Copy link

@dmethvin, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mgol, @markelog and @gibson042 to be potential reviewers.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 87.952% when pulling 2d23ebc on dmethvin:225-holdready into 9e3dfcb on jquery:master.


expectWarning( "jQuery.holdReady", 1, function() {
jQuery.holdReady( true );
jQuery.holdReady( false );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you calling it twice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be sure I don't get two warnings.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@markelog
Copy link
Member

@Krinkle I remember you were using it somewhere?

@Krinkle
Copy link
Member

Krinkle commented Jan 18, 2017

@markelog I used to use it at Wikipedia by calling jQuery.ready() at the bottom of the HTML before </body>. Added in 2013 with wikimedia/mediawiki@0a000d5; Removed in 2015 with wikimedia/mediawiki@d790562.

It was mainly there to work around a bug in Firefox (as well as minor optimisation to trigger the event when its "early" enough for us, which was a bad idea in hindsight). The bug was actually caused by some fragile logic on our end, fixed and refactored in 2014, and the jQuery.ready() "optimisation" was removed from our code base in 2015.

For third-party users of MediaWiki, this was released in 1.22.0 (Dec 2013) and removed in 1.26.0 (Nov 2015). The current stable (1.28) and LTS (1.27) no longer have this, however we do have a few months left until May 2017 before MediaWiki 1.23 (legacy LTS) reaches end-of-life.

@markelog
Copy link
Member

@Krinkle thank you for the thoughtful comment, looks like we are in the clear :)

@dmethvin dmethvin closed this in 6161d2b Jan 23, 2017
@dmethvin dmethvin deleted the 225-holdready branch September 12, 2017 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants