HTML & CSS
Is there a way I can load a whole website or specify what I want loaded while my website displays a loading bar?
no, at least not a true one.
It's' a little complicated but you could hide the content while the page is loading and perhaps show a loading gif and then remove it once the page has completed loading. You should be able to find an example here.
That isn't a true loader though. A true loader would be able to detect the amount of the page that has loaded.
You could potentially use something like PHP which calculates the total amount of data that's going to be sent and then reports that to the page while it starts loading... however, the amount of time it'd take to parse the HTML and CSS and calculate all those sizes would be a bit overkill.
This topic is now closed. New replies are no longer allowed.