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

The Archive Base Latest Questions

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

How can i make something similar like GMail has http://o7.no/H72gPf When application starting, gmail

  • 0

How can i make something similar like GMail has http://o7.no/H72gPf
When application starting, gmail showing progress bar and it show us the percent (part) of loaded content already.

How i can mesure that certain JS file (HTML content, CSS or Images) loaded partially or fully ?

P.S. On server side I would like to use PHP

  • 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-01T01:44:15+00:00Added an answer on June 1, 2026 at 1:44 am

    You can do this in a number of ways.

    An easy way is to place your script tags (for included scripts) below the content, and have each included script call some function defined in the HEAD section of your document.

    So if you define this in a script tag in the head of your document:

    function increment_progress() {
       // your HTML-dependent implementation here
    }
    

    Then just do this at the bottom of included scripts:

    increment_progress();
    

    What increment_progress does really depends on what your progress-bar looks like, and how you build it with HTML.

    For example you could have a TABLE in a DIV, adding a TD to the first TABLE row each call to increment_progress, with fixed TD widths and different background colours for TD and DIV. You then choose a width for TD’s which roughly equals (width of DIV) / (number of scripts to be loaded).

    Something like this:

    <html>
    <head>
      <style type="text/css">
        #your_interface { display: none; }
        #progressbar { width: 100px; background: #00ff00; }
        #progressbar table { width: 100%; margin: 0px; }
        #progressbar table td { padding: 0px; border: 0px; 
                                border-collapse: collapse; 
                                background: #ff0000; width: 10px; }
      </style>
      <script type="text/javascript" href="/path/to/jquery"></script>
      <script type="text/javascript">
        var count = 0;
        function increment_progress() {
           $('#progressbar table tr').eq(0).append('<td>&nbsp;</td>');
           count++;
           if (count == 9) { // the number of scripts loaded below
              $('#progressbar').hide();
              $('#your_interface').show();
           }
        }
      </script>
    <head>
    <body>
      <div id="progressbar"><table><tr><td></td></tr></table></div>
    
      <div id="your_interface">
         The rest of your content here!
      </div>
    
      <script type="text/javascript" href="/path/to/script1"></script>
      <script type="text/javascript" href="/path/to/script2"></script>
      <script type="text/javascript" href="/path/to/script3"></script>
      <script type="text/javascript" href="/path/to/script4"></script>
      <script type="text/javascript" href="/path/to/script5"></script>
      <script type="text/javascript" href="/path/to/script6"></script>
      <script type="text/javascript" href="/path/to/script7"></script>
      <script type="text/javascript" href="/path/to/script8"></script>
      <script type="text/javascript" href="/path/to/script9"></script>
    </body>
    </html>
    

    If you’ve got a fast server and fast internet connection, you’ll barely see it 🙂

    If you’re already loading scripts using AJAX, you could call increment_progress() from your ‘response’ handler function.

    Update: to show how to transition to the real user interface after loading.

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

Sidebar

Related Questions

How can I make something like this below work? <?PHP $_SESSION['signup_errors']['test1']; $_SESSION['signup_errors']['test2']; $_SESSION['signup_errors']['test3']; $_SESSION['signup_errors']['test4'];
According to http://lipas.uwasa.fi/~ts/info/proctips.html#orrules , you can make basic or rules in .procmailrc with something
I've made a voting on comments like the one this website has(something similar), and
I wanted to make Map of Collections in Java, so I can make something
I want to know how to make something like this: example: <a href=# id=123>Link</a>
How can I program hourglass behavior (similar like on picture) for my game? Should
Is there any way, to make something like: $elements_string = array() foreach ($something as
In my app I have something similar in appearance to labels in GMail app
I decided to, for fun, make something similar to markdown. With my small experiences
I can make a DAO recordset in VB6/Access do anything - add data, clean

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.