Re: need HTML guru for small help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Davis <ydavis@hkg.odn.ne.jp> writes:

> Anyone know how I can get my background to load first?
> It always loads last.
> Using Web Objects Fusion

(a) Make it small
(b) Put a javascript fragment in the <head> to access it.

<script type="text/javascript"><!--
// Load bg ahead
var anything = new Image();
anything.src = "pics/clouds.jpg";
//-->
</script>

This is entirely independent of the actual background loading, but just
by mentioning the image file, with luck the browser will start loading
it immediately. The virtue of this over possibly more elaborate schemes
is that if it "doesn't work" it will simply have no effect.

Hard to test this sort of thing exhaustively, but it seemed to help my
index page. ( Search down source of http://imaginatorium.org/index.htm
for "Load graphics ahead of photos")

Brian Chandler
----------------
geo://Sano.Japan.Planet_3
Jigsaw puzzles from Japan at:


[Index of Archives] [Share Photos] [Epson Inkjet] [Scanner List] [Gimp Users] [Gimp for Windows]

  Powered by Linux