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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:14:51+00:00 2026-06-15T03:14:51+00:00

The way I currently try to work around this is to get the object

  • 0

The way I currently try to work around this is to get the object loaded on $(document).ready(). And run the rest of the scripts with $(window).load() . However I am still ending up adding a 0.5 sec delay to make sure that the object loads completely as it is retrieving data from 2 ajax calls.

Is there a better way of loading an object before DOM loads or at the same time but only when it is done loading the object and getting the data, and then call the rest of the functions?

document.ready =  function (){
object.initall();   
};

the initall() function calls the two methods which get data from 2 different services.

window.onload = function () {
setTimeout(function(){
    object.loadEventTable();
    object.loadChart();     
    $('#uid').text(object.lData.header.uid);        
},500);
};
  • 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-15T03:14:52+00:00Added an answer on June 15, 2026 at 3:14 am

    I guess you can make it a function and put function call at the beginning section of your page. May be at the opening of your body tag

    object.loadEventTable();
    object.loadChart();     
    window.onload = function () {
    setTimeout(function(){   
        $('#uid').text(object.lData.header.uid);        
    },500);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the way I am currently doing it. <?php //show footer echo <script
I currently am using a UIScrollView to work as a way of scrolling/ dragging
I'm currently trying to get one of my unit tests to work, but there
Is there currently a way to generate XML files containing tables compatible with Microsoft
Currently the way /usr/sbin/alsa in Debian knows the processes using the sound card looks
Currently the way I store strings is by using Localizable.strings, for example English: URL
Is there currently a way to subscribe to an event of a wrapped set,
Is there a way to find currently active http connections in a page? For
I am currently looking for a way to remove fullstops from a string in
I'm currently revamping the way our shop does version-control. We will be using a

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.