Forums

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

Home Forums JavaScript Javascript site loading page.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25078
    cwhitaker
    Member

    Hello everyone.

    I’m creating a portfolio site for my self. And the background Image is very large and detailed, so of course it is a very large file size.

    I’m looking for a piece of javascript that will show a loading bar until the image is first loaded, Then take you to the page.

    Thank you.

    #58707
    AshtonSanders
    Participant

    I haven’t heard of a javascript loading bar for an image. It sounds like your in need of a Flash Loading bar *toot* … but then it’d have to be flash… If you’re not going flash, I’d recommend decreasing the file quality and having the image load last…

    #59020
    Mr KiTT3N
    Member

    You can do it in jquery

    Have a javascript lay a div loading over the page and a progressbar slowly increasing and for good measure end at 80% (ish)

    Attach window.load( ….animate to 100% …. then kill loading page)
    note that .load wont fire untill the dom has finished loading all its request

    So roughly the code would look like this

    Code:

    completely untested just typed in the textarea… but gives you an idea

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