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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:13:00+00:00 2026-06-19T01:13:00+00:00

I have a webpage that includes 2 Javascript files. The second file requires the

  • 0

I have a webpage that includes 2 Javascript files. The second file requires the one before it. More specifically, in my 2nd Javascript file I am immediately using jQuery’s .ajax() method. Is it possible in a very edge case scenario that jQuery may not be ready when I go to use it?

Note: I do not want to use $(document).ready() and I do not want to use libraries such as require.js or head.js. I just want to have confidence that jQuery will be there when I go to use it, and that Javascript’s single-threaded nature will be respected even in edge cases.

  • 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-06-19T01:13:02+00:00Added an answer on June 19, 2026 at 1:13 am

    Scripts included by <script> with the src attribute are loaded serially. Therefore if you have the setup

    <script src="one-file"></script>
    <script src="other-file"></script>
    

    …one-file must finish downloading and executing before the document can continue parsing (i.e. before retrieval of the other file even begins). This is different with the defer and async attributes, but it is probable that you are omitting those.

    If my answer is not peace-of-mind enough for you, I gleaned it from the HTML spec itself.

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

Sidebar

Related Questions

I have an external javascript file that I want to, upon include, write some
I have a web page that pulls in several javascript files in the HEAD
I currently have a div layer that includes some javascript (to display a button).
i have a webpage with javascript that split the view into pages visible to
I have a dynamic webpage that includes an iFrame where external html code is
I've found that loading the same javascript file twice or more (via PHP) can
I have many (almost 15) javascript files which I am using in my webpage.
I have a header on my webpage that contains the some javascript for some
I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics
I have a webpage that is transferring A stylesheet as a text/plain MIME type.

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.