How do I create an alert after jQuery is loaded and fully usable?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I’m going to show you how to do what you want, and then tell you what I think about it:
Normally when you’re using jQuery, you would will include it in a
<script>tag in your<head>. All such scripts are loaded in the order they are defined, so if you load it first, it will be available for all subsequent scripts. Therefore you should never need to check for it.If you find yourself using a lot of javascript functionalities on your site, and want to make sure all your module dependencies are in check, I would suggest to check out RequireJS