wml::des::preload(3)

wml::des::preload3

Preload images

Usage

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

Overview

This include file provides the "<preload>" tag which can be used to preload images. Such preloading is usually done to speedup access for following pages. Currently there are only a few tricks how this can be done.

The following combinations are currently supported:

"src="anyimage "via=size"

Preloads the image anyimage 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 occurring 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.

"src="anyimage "via=js"

Preloads the image anyimage 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).

Requires

 Internal: P1, P2
 External: --

Releases

15 releases since Debian 2.0 (Hamm); the text changed 12 times.

  1. 2.0
  2. 2.1
  3. 2.2
  4. 3.0
  5. 3.1
  6. 4.0
  7. 5.0
  8. 6.0
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11–13

Authors

 Ralf S. Engelschall
 [email protected]
 www.engelschall.com
 Denis Barbier
 [email protected]

From wml 2.32.0~ds1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.