jquery - Web page loading text -


maybe question before wasn't able find relevant answer needs. ask how people make loading text, text grey example , left right becoming white while page load. when reach end - page loaded , page show. same thing spinners... or example how make page show loading 0%, 1% - 100% , when it's 100% page load... best way accomplish this?

thanks.

some comments here not possible without flash have seen done in pure html before. common in complex demo / visualisation apps , web apps.

the trick page loads javascript code kicks in preload images , other resources cache. can monitor progress of using javascript , update progress bar while you're doing it.

this article discusses caching images first comment @ end links article caching other resources:

i've seen done quite lot if page loads lot of content through ajax request. enable require quite structural change site though if you're not loading in parts of page via ajax. if use ajax can send request out, set spinner animation display, , have "ajax request complete" callback remove spinner , "done!". not interactive progress bar option though.

finally basic version of guess adding after <body> hide page , in jquery ready event fade div out hid content. no interactive progress bar think work.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -