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

  • Home
  • SEARCH
  • 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 6728105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:07:46+00:00 2026-05-26T10:07:46+00:00

I run a $.get() call as soon as JS is executed, this is before

  • 0

I run a $.get() call as soon as JS is executed, this is before the $(document).ready() is triggered. How can I use the result of the $.get as soon as $(document).ready() was triggered? I don’t want to send the $.get() after $(document).ready() was triggered.


Solution: As Jonathan Julian mentioned I came across this solution:

$.get('my_script.php', function(data) {
  $(document).ready(function() {
    // I can use data here as soon as document is available! 
    // No flickering of the updated div! :)
  });
});
  • 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-26T10:07:47+00:00Added an answer on May 26, 2026 at 10:07 am

    In your success handler, do what you need to do in a $(document).ready() function. It will either run right away, or wait until the document is ready.

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

Sidebar

Related Questions

I'm running Mac OS 10.6. I want to run top to get memory usage,
I get this error when I run a django app ( dpaste ) Template
I get this error when I run the application Incorrect syntax near 12 ,
I'm trying to run a simple Get-WmiObject call in PowerShell. Get-WmiObject -computerName $srv -namespace
I want to use Twitter framework for iOS 5, but be able to run
Here's the code - this runs as soon as the document is loaded (inside
I want call a url and get the response data from the url from
When I run get-user|get-member in powershell with the exchange add-in I noticed there is
I run to get some value as score. score = soup.find('div', attrs={'class' : 'summarycount'})
I'm trying to run the get-service command on a remote machine in powershell. After

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.