WML::DES::PRELOAD(1)

NAME
wml::des::preload - Preload Page Contents

SYNOPSIS

 #use wml::des::preload
 <preload src=<url> via=<trick>>

DESCRIPTION
This include file provides the <preload> tag which can be used to preload some page contents. Such preloading is usually done to speedup access for following pages and is most of the time used for images. Currently there are only a few tricks how this can be done and support is given here only for images.

The following combinations are currently supported: Preloads the image anyimage.gif by using an <img> tag with the attributes width=1 height=1 which leads to the loading of the image but only to a 1 pixel in display.

Advantage: Works for all browsers.

Disadvantage: This approach has the nasty side-effect of an occuring 1 pixel in display because width=0 height=0 does not work as expected in most browsers (especially in Netscape 4.x). So, position your <preload> tag somewhere it does not destroy the look and feel of your page. Preloads the image anyimage.gif by using a JavaScript snippet which loads the image by declaring an unused Image object.

Advantage: Silently preloads the image without displaying anything.

Disadvantage: Only works for browsers with a JavaScript implementation and only for those who support the Image object (currently NS/3, NS/4, IE/4).

AUTHOR

 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com

REQUIRES

 Internal: P1, P2
 External: --

SEEALSO
HTML 3.2 <img> tag.