Making page load without showing anything?

jag5311's picture

They have: 202 posts

Joined: Jan 2002

I have seen this on several sites. You go to the site, and nothing happens for a sec, and then bam, everything shows up all at once. Is there some code you put for this, or what?

Thanks
Bryan

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

enclose the whole site in tags

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

or use flash and don't use a preloader!

It's bad coding that does it, you really don't be wanting to do this. Wink

jag5311's picture

They have: 202 posts

Joined: Jan 2002

you don't want the site to load as one, but you want it to load it bits and pieces?

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

If some one has a very slow connection then they'd probably think that the site isn't going load and go else where, but if they see the page starting to load then they would probably wait. Best to have sites that load relatively fast any way!

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

taff's picture

They have: 956 posts

Joined: Jun 2001

There are some graphic-intensive sites that opt for a preload script. But usually in this case there is some sort of "Loading, please wait" message.

.....

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Yes, you want to have the site load in pieces. Specifically, have the text load first, so people can read it while the rest loads.

Of course, if your page is so heavy that this involves more than a second or two, you might want to rethink your page design.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

yeah, i agree with suzanne here, if i c a page that is blank for more than 3 seconds i just leave because it usually means that there's nothing there

Busy's picture

He has: 6,151 posts

Joined: May 2001

90% of pages that take a while to load and don't have preload scripts are as Suzanne mentioned - are from bad coding. Badly nested tables and/or div's
The rest would be redirect scripts or bad flash designs

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.