Delay while page is loading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Donald Canton

    #1

    Delay while page is loading

    Hi all,

    I've got a script that caches 52 card images and displays the
    appropriate card based on user input. It works fine, except when the
    page loads for the first time the results are unpredictable until a
    few seconds elapse. My guess is that it's taking time to cache the 52
    images. Is there any way to delay the loading of the page until all 52
    images are cached? Thanks.

    dc
  • HikksNotAtHome

    #2
    Re: Delay while page is loading

    In article <c260a017.03071 20820.665a1dcc@ posting.google. com>,
    dcanton@rocketm ail.com (Donald Canton) writes:
    [color=blue]
    >Hi all,
    >
    >I've got a script that caches 52 card images and displays the
    >appropriate card based on user input. It works fine, except when the
    >page loads for the first time the results are unpredictable until a
    >few seconds elapse. My guess is that it's taking time to cache the 52
    >images. Is there any way to delay the loading of the page until all 52
    >images are cached? Thanks.
    >
    >dc[/color]

    Put the preloading in a preload page, with a "please wait" message. When the
    page is loaded, redirect to the actual page. Or, have the message in a div that
    hides the entire page. When the images are loaded, hide the message, thus
    displaying the page.
    --
    Randy
    All code posted is dependent upon the viewing browser
    supporting the methods called, and Javascript being enabled.

    Comment

    Working...