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

The Archive Base Latest Questions

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

The normal flow is to have JavaScript manipulate the DOM. For example, I have

  • 0

The normal flow is to have JavaScript manipulate the DOM. For example, I have a callback from a transaction executeSql on an openDatabase. The callback manipulates the DOM to add the result into a div.

But I have a special case where the page has to load correctly in toto. Yes, that’s right – I used the phrase in toto.

Q: Is there a way for JavaScript to pause the page load until call the callbacks have called back?

I’m thinking I will have to use document.write instead of $(‘body’).append().

  • 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:28:15+00:00Added an answer on May 26, 2026 at 10:28 am

    It sounds as if you are making a callback, initiated when the page load begins, but you don’t want the page to display until the callback is complete.

    Whatever the exact situation may be, the answer seems simple.

    If you don’t want a page to load before some event finishes, then do it synchronously on the server instead of starting it asynchronously on the client. Then you won’t actually serve anything until it’s done, and, hence, nothing will appear.

    If for some reason this is not possible, then render all your content “hidden” and show it when the callback finishes.

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

Sidebar

Related Questions

How can I prevent a user from neglecting the normal work flow of a
I want to Show images using cover flow effect.I have done with Normal coverflow
My normal work flow to create a new repository with subversion is to create
I read somewhere that one should never use error conditions as normal program flow.
I have some query. First of all let's have an iPhone application flow which
If absolutely positioned or fixed positioned elements are taken out of the normal flow,
Using exceptions for normal flow of code is bad - it's slow, it's bad
I don't really understand the flow/workings of async methods. I have created a WebRequest
I have one big JSF page containing nearly 1000 lines using normal JSF forms
Sometimes normal FTP doesn't quite cut it... When you need to do secure FTP

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.