Creating a loading screen in HTML5

Posted by espais on Stack Overflow See other posts from Stack Overflow or by espais
Published on 2011-01-02T20:43:06Z Indexed on 2011/01/02 20:53 UTC
Read the original article Hit count: 231

Filed under:
|
|

I am having some issues finding a decent tutorial for generating a loading style screen with regards to HTML5. To be quite honest I'm not sure exactly where to begin...

My project is essentially a simple HTML5 game, where I'll be loading in various sprite sheets and tilesets. They'll be reasonably small, but I'd like to show a little loading spinner instead of a blank screen while all the resources are loaded.

Much appreciated if somebody could point me in the right direction, be it decent links or code samples to get me going...my Google-fu is lacking today!


For clarification, I need to figure out how to load the resources themselves, as opposed to finding a spinner. For instance, how to calculate that X% has loaded.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html5