Percentual HTML/JS preloaders
- Started
- Last post
- 5 Responses
- fues
So what's the deal with percentage HTML/JS preloaders.
All I can find are some 'fake' loaders where you hardcode all files to be loaded in a json file or so.
Any good resources out there?
- monNom0
You're going to have to write those file names SOMEWHERE, why not a JSON file?
If you want to do really big files that need accurate progress indicators, you could look into webSockets, but that's a lot of work for a little feature if it's not critical.
- jpm0
Considering the 85% of a normal site size are images, you can use this https://github.com/alexanderdick… to create your own custom percent preloader. Count number of images inside your body and generate the equation.
- _niko0
flash circa 1999 called...
- ukit20
Back to the future
- Continuity0
I honestly don't understand why anyone would want a preloader, in this day and age.
The whole point of them was to keep eyeballs on the screen in the early Flash days when broadband internet connections were a luxury for most, but websites' total file weights had a started getting much higher.
We've all got broadband internet now so even the heaviest of websites load super-fast, and Flash will be taking on an exalted place next to a Tyrannosaurus Rex skeleton in a natural history museum ... yet with that — as well as things like streaming, CDNs, low-overhead CSS and JS — you still want a preloader? Why?
- < thischrisRG
- Because the client saw that you'd managed the loading of large resources tastefully, but wanted everything to start andmikotondria3
- load all at once to 'wow' people, and the only way is to preload it.
Sigh.mikotondria3