Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a jQuery.holdReady() alternative? #4847

Closed
udidol opened this issue Feb 18, 2021 · 3 comments
Closed

Is there a jQuery.holdReady() alternative? #4847

udidol opened this issue Feb 18, 2021 · 3 comments

Comments

@udidol
Copy link

udidol commented Feb 18, 2021

Description

jQuery.holdReady() was deprecated in v3.2.0.
I couldn't find a replacement.
What is the alternative to jQuery.holdReady()?

@mgol
Copy link
Member

mgol commented Feb 18, 2021

Hey, the alternative is explained in the docs of that method: https://api.jquery.com/jQuery.holdReady/

@mgol mgol closed this as completed Feb 18, 2021
@udidol
Copy link
Author

udidol commented Feb 18, 2021

Hi @mgol
I saw the documentation already, but it doesn't provide a real alternative.
I want to prevent other scripts outside of my code from running, who run on jQuery.ready().
It is not possible to put external scripts inside a custom promise.

There is no solution for this use of holdReady?

@dmethvin
Copy link
Member

Load those scripts in the ready handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants