0

With the new improvements in HTML5, it's now possible to know the loading percentage of an image (or other files), to build a progress bar with real data?

Is at least possible to know in advance the size of an image (or other files) to fake this percentage more accurately?

All the info I found seems outdated, or perhaps it isn't possible yet. But a lot of websites shows this days percentage spinners and progress bars... how? Exists an usual fake trick?

Thank you.

dgnin
  • 1,565
  • 2
  • 20
  • 33
  • possible duplicate of: http://stackoverflow.com/questions/4999703/preload-with-percentage-javascript-jquery – ced-b Feb 27 '14 at 17:38
  • The image itself is a visual progress bar of its own loading. – Boann Feb 27 '14 at 17:43
  • @ced-b, assuming the answer of the question linked is updated, we can deduct some answers of my question, but I think it will be interesting for me and for other people in the future to know accurate answers to the questions I ask here. – dgnin Feb 27 '14 at 17:52
  • @Boann, the more important objection is: I want to preload the images, not to load them dinamically. I want it loaded and in the future I will decide to put it in the real flow of the website. – dgnin Feb 27 '14 at 17:53

1 Answers1

0

The most loading spinners are based on the numbers of file. With this number there are calculating the percentage. I do not know one witch is calculating by the file-size.

hamburger
  • 1,339
  • 4
  • 20
  • 41