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 5974899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:00:26+00:00 2026-05-22T21:00:26+00:00

Google allows you to load jQuery asynchronously like so: <script src=http://www.google.com/jsapi?key=… type=text/javascript></script> <script> //<![CDATA[

  • 0

Google allows you to load jQuery asynchronously like so:

<script src="http://www.google.com/jsapi?key=..." type="text/javascript"></script> 
<script> 
  //<![CDATA[
    google.load('jquery', '1.6');
  //]]>
</script>
<script src="scripta.js" type="text/javascript"></script>
<script src="scriptb.js" type="text/javascript"></script>

In later scripts, how do I ensure jQuery has been loaded? I could use setInterval to check whether jQuery is set, but suppose scriptb.js depends on scripta.js, and both are wrapped in a setInterval to wait for jQuery, and so the interval will “randomly” execute either one first.

How can I approach this problem?

Thanks!

  • 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-22T21:00:27+00:00Added an answer on May 22, 2026 at 9:00 pm

    Assign the optional setting callback (documentation):

    google.load('jquery', '1.6', {"callback":jqueryLoaded});
    
    function jqueryLoaded(){
    alert('loaded');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that allows users to login w/ their google account, http://urlme.cc
How would I go about creating a Google map that allows the user to
Google Analytics reads like a seismic chart lately
Google is failing me on this one. Let's say I have some ECMA script
I am planning on using Google to download the jQuery lib for both UI
I have this very simple script that allows the user to specify the url
My problem is this: Google App Engine allows cron jobs to be active for
Google maps api v3 allows styles to be applied to the map, including setting
Is there any library that allows to handle google talk messages using Ruby?
I'm trying to load XML data via the jQuery get method. The XML feed

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.