467,877 Members | 1,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,877 developers. It's quick & easy.

Loading Website All At Once

This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of the size than anything else but this person insists on the
request. Am I missing something here or there is actually a way to
load the whole website all at once other than hiding body with DOM
until page is loaded or setting buffer to true on a server side which
does not work for this request (but I tried)?
Thanks.
Jun 27 '08 #1
  • viewed: 3666
Share:
6 Replies
On Fri, 06 Jun 2008 23:24:30 +0200, vunet <vu******@gmail.comwrote:
This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of the size than anything else but this person insists on the
request. Am I missing something here or there is actually a way to
load the whole website all at once other than hiding body with DOM
until page is loaded or setting buffer to true on a server side which
does not work for this request (but I tried)?
You might try to preload all the images with javascript, with a script tag
before the body. Strange request though, and if it takes long to load a
lot of people will bail. AFAIK, browsers should execute (non deferred)
javascript before loading any HTML further. It will result in a total
empty page until everything has loaded though.
--
Rik Wasmus
....spamrun finished
Jun 27 '08 #2
In article
<b6**********************************@c58g2000hsc. googlegroups.com>,
vunet <vu******@gmail.comwrote:
This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of
....

This is how to do it:

Deliver a page that has the images load but are hidden. On this page,
have a nice distraction like

<http://dorayme.890m.com/jokes/pope_rabbi_debate.html>

with a link at the bottom to go to the real page. The images will have
been cached by then.

--
dorayme
Jun 27 '08 #3
In article <dd******************************@comcast.com>,
Ed Mullen <ed@edmullen.netwrote:
dorayme wrote:
In article
<b6**********************************@c58g2000hsc. googlegroups.com>,
vunet <vu******@gmail.comwrote:
This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of
...

This is how to do it:

Deliver a page that has the images load but are hidden. On this page,
have a nice distraction like

<http://dorayme.890m.com/jokes/pope_rabbi_debate.html>

with a link at the bottom to go to the real page. The images will have
been cached by then.

Umm. dorayme? What link at the bottom? The Rabbi debate was cute but
... uh ... no link to another page. Hence, diminished value to your
tutorial posting. Or did I miss something?
Yes, I think you missed that I was conveying an idea which might spur
useful ideas in the OP. For example it might spur him to make the
opening page one that engages the reader with stuff relevant to his
website which quietly also loads stuff which becomes visible on further
pages quickly because now cached. I proceeded without dotting all the
"i"s and crossing all the "t"s.

I was *not* giving an example of the complete page he should write as a
decoy while the images load. I was giving the idea that on such a page
he could have something to amuse or engage the reader while the sneaky
business was going on behind the scene (in a negatively margined area or
in an invisibly displayed element*. What he could have is a story about
rabbis and popes. Or whatever he liked. I saw an opportunity to let you
read this joke again.

Best to meet ideas half way. Not to greet an idea with the demand that
it should be everything to everyone and perfect in every respect.

Perhaps you also missed, because I never said anything about it, that I
am suspicious of the need to be loading things that take a lot of time
without reserving such to pages where the user knows he is wanting such
a thing and is prepared to wait for it. The website maker should get
into the habit of giving people tastes of things and them being able to
get more if they want. Not to be lumbering folk with a lots of stuff
just like that! It is not a lesson that all have absorbed.

----------------------
* I am working right now on a special design for an invisible element
that gives a creepy *feeling* to the viewer, something he cannot quite
see but knows is there (like a ghost). It makes me shudder to think of
it, wait till you sense it when I publish. (Boji, if you want an
advanced *shuddering sense* of this, send $US5 and I will give you a
draft)

--
dorayme
Jun 27 '08 #4
On 6/6/2008 2:24 PM, vunet wrote:
This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of the size than anything else but this person insists on the
request. Am I missing something here or there is actually a way to
load the whole website all at once other than hiding body with DOM
until page is loaded or setting buffer to true on a server side which
does not work for this request (but I tried)?
Thanks.
From the other responses to your question, it should now be apparent
that you are trying to solve the wrong problem. You have a Web page
that is too large, most likely from gratuitous graphics that add little
understanding of the content.

Suggestions by other responders generally involve delaying any display
at all until the graphics finish loading. Your client might like that,
but your client's intended audience will reject it.

The real solution is to make the page smaller. Remember that graphics
and Flash are part of the size. Also remember that it takes longer to
download 10 files of 10 KB each than to download one 100 KB file.
That's because 10 separate requests must be sent to the server, which
must then provide 10 separate responses.

If your intended audience is in the U.S., note that over 40% of the
Internet connections in the U.S. (including mine) still use dial-up. If
I run into a page that seems to take too long to load, I use a toolbar
capability to suppress the loading of ALL images. Further, my setup
blocks all Flash, leaving only a marker where a Flash presentation would
have appeared. I can select that marker to display the presentation,
but I usually ignore all Flash. JavaScript is another time-waster,
especially those scripts that cause additional scripts to download. For
the Web site of a mutual fund group where I have my retirement savings,
I disable JavaScript except for those pages that cannot be rendered
without it.

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.
Jun 27 '08 #5
you should optimize your page, with less images.
other tricks are just gymnic. your client may be happy but the visitors
will hate to see nothing until 1000 images do load, and they will simply
close the website and go somewhere else.
go smaller.

or use just ONE big image to replace all the page :-)

This may be a strange question from a non-technical person who asked
me to make his whole site and images load all at once. I.e. the
completely loaded site would show up immediately even with a big
background image. I explained that images are taking longer to load
because of the size than anything else but this person insists on the
request. Am I missing something here or there is actually a way to
load the whole website all at once other than hiding body with DOM
until page is loaded or setting buffer to true on a server side which
does not work for this request (but I tried)?
Thanks.

--

`,,`,,`,,`, ,`,
http://www.HyperPublish.com Catalogs, CD and sites with 1 tool
http://www.EasyWebEditor.com Create a nice Web site with ease
http://www.1site.info A professional Website quickly
http://www.EBooksWriter.com Discover the artist inside you!
http://www.PaperKiller.com Manuals, HTMLHelp, CHM quickly
http://www.CdFrontEnd.com Create autorun CD presentations

Visual Vision - http://visualvision.com http://visualvision.it
leader in hypertext authoring [ASP members, ESC members]
Jun 27 '08 #6
On 6/11/2008 5:25 PM, VisualVision wrote [in part]:
>
or use just ONE big image to replace all the page :-)
That would of course delay the display of the page and drive away
customers.

More important, that would likely make the page inaccessible to anyone
who is visually handicapped and who relies on an audio browser. If the
page is for a business or government agency, that would create the risk
of a lawsuit under the Americans with Disabilities Act.

Yes, I saw the :-) However, someone else might take this suggestion
seriously.

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.
Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by OneSolution | last post: by
10 posts views Thread by eholz1 | last post: by
3 posts views Thread by Phil | last post: by
reply views Thread by wojtowicz.maciej | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.