Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript preloading a webpage

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24487
    nidhins
    Member

    can anyone help me in preloading a webpage(and show an ajax loading gif)

    thanks

    nidhin

    #56670
    akeenlabs
    Participant

    Are you wanting to preload the webpage for the same reason you might want to preload an image? To make it load faster. If so, could you just load the page in a iframe and not display the iframe on screen?

    #56680
    chazzwick
    Member
    #56805
    Hugo
    Member

    One trick is placing an absolute positioned div right after the body opening tag, give it a with and height of 100%. Put something fancy in it, some loader gif image, and make it dissapear when the entire document was loaded using javascript.

    It’s kinda simple and maybe old, so you should have a look at other solutions as well

    #65913
    mee
    Member

    Hi all

    I’m a new to jquery and have some trobles to integrate a preloader or least an wait handel so the page will wait for 5s. until it goes of with the full content. I found some nice preloader but it doesen’t work with my jquery imagefader i used.
    Can anyone help me to do a wait for 5s. until a <div> is showing?
    Thanks

    #65938
    mee
    Member

    I did now a wait with a timeout:
    setTimeout (function()

    That woked pretty well.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.