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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:20:20+00:00 2026-05-20T09:20:20+00:00

As part of a loading screen for an offline-enabled web application I’m building (

  • 0

As part of a loading screen for an offline-enabled web application I’m building (using a cache manifest), I’d like to display an accurate progress bar that lets users know which files has thus far been downloaded and which are still pending. Something like the following:

Loading...
/assets/images/logo.png: loaded
/assets/images/splashImage.png: pending

I know that I can use the cache “pending” event, but I don’t see that the event arguments have any data associated with them.

Is there any way to do this?

  • 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-20T09:20:21+00:00Added an answer on May 20, 2026 at 9:20 am

    There is a progress event that gets triggered when each file downloads, however its payload does not include the file name in any browser that I’ve tested with (Chrome, Safari, FF beta). Chrome displays the file name in the Console (though as far as I know it’s inaccessible to JS), but neither Safari nor FF even go that far. And from what I’ve seen, the files do not download in the same order that they’re listed in the manifest, so there’s not even a way to generate an ordered list then knock them off one at a time.

    So in answer to your question, no, there isn’t any way to do this right now. It’s possible that in the future the progress event will include the filename – at least in some browsers – but right now this isn’t possible.

    I should add that in Chrome (not in Safari or FF) you can at least get a count of files to be downloaded, allowing you to at least calculate an accurate progress bar. To get this in Chrome you’d use the following:

    function downloadProgress(e) {
        totalfiles = Number(e.total);
    }
    window.applicationCache.addEventListener("progress", downloadProgress, false);
    

    However this will error out in other browsers, so you need to wrap a try/catch or some other method (typeof(e.total)) to avoid the error.

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

Sidebar

Related Questions

Part of my application maps resources stored in a number of locations onto web
Part of my app caches web pages for offline viewing. To do that, I
How can I display the loading screen animation in iphone? I mean the bars
I am loading JPEGs into a Flash presentation using load with a flash.display.Loader and
Part of our java application needs to run javascript that is written by non-developers.
I have got an application, that is getting data via XML-files. During the parsing-part
Part of my everyday work is maintaining and extending legacy VB6 applications. A common
Part of a new product I have been assigned to work on involves server-side
Part of the install for an app I am responsible for, compiles some C
Part of the series of controls I am working on obviously involves me lumping

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.