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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:35:11+00:00 2026-05-24T15:35:11+00:00

the following lines are from the official jQuery website <script src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js></script> <script>!window.jQuery && document.write(‘<script

  • 0

the following lines are from the official jQuery website

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="http://code.jquery.com/jquery-1.4.2.min.js"><\/script>');</script>

I’m not sure about the HTML parse order, or should I say script execution order.

The question is: Will line 2 wait for line 1 to load? I doubt it.

If line 1 is still being loaded (say it’s 3000KB, and takes long), and line 2 is executed already. window.jQuery would always be false, and so the second js is always included. If that’s true, what is line 1 for anyway?

  • 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-24T15:35:11+00:00Added an answer on May 24, 2026 at 3:35 pm

    The scripts are executed in the order they are in the document. The browser waits for the script to load before executing the scripts following it.

    If this weren’t the case, you couldn’t have any two files be dependent of each other. You’d have to put everything in the same file because otherwise the script execution order would be practically random.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to compile the following line of code from http://code.google.com/p/enhsim : enh::eout <<
The output from the following: import feedparser d = feedparser.parse('http://www.netflix.com/NewWatchInstantlyRSS') d.entries[177].keys() is: ['summary_detail', 'links',
How can I comment on each line of the following lines from a script?
The following line of code comes from the official dialog/#modal-form example allFields = $(
In the following lines (from superfish): ul.sf-navbar .current ul ul { top: -999em; }
My program has the following lines, works fine when run from Netbeans, JButton Button_1=new
The following code appears to force line-seq to read 4 lines from file .
When I import the following lines from a datafile: DATAFILE1: 1,2,3,4,5,6.789 10,11,12,13,14,15.6789 into SQL
I have code following lines to start multiple downloads from my application. The problem
I need to extract from the following lines of code <label for=<%=foobar.bar %>>Password:</label> <label

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.