Page loading status
browser, html, javascript, jquery
Solution
I'm not 100% sure this will work, but.. here is the theory:
First of all, don't stop JavaScript running until the page has loaded. Meaning, don't use window.ready document.ready etc..
At the top of the page initialise a JavaScript variable called loaded or something and set it to 0.
`var loaded = 0;`
Throughout the page increment loaded at different points that you consider to be at the correct percentages.
For example, after you think half the page would have been loaded in the code set `loaded = 50;`.
Etc..
As I say, this is just a concept.
Problem
Is there any way to know how far browser loaded the page? Either by using JavaScript or browser native functions. Based on the page status i want to build progress bar.