Man page - wml::des::preload(3)
Packages contas this manual
- wml::sys::bootp4(3)
- wmk(1)
- wml(1)
- wml::fmt::verbatim(3)
- wml::std::href(3)
- wml_tags(7)
- wml::des::navbar(3)
- wml::fmt::url(3)
- wml::sup::hextriple(3)
- wml::std::label(3)
- wml::sup::all(3)
- wml::des::space(3)
- wml::des::gfont(3)
- wml::des::imgbg(3)
- wml_p5_divert(1)
- wml::des::imgdot(3)
- wml_p6_asubst(1)
- wml::std::logo(3)
- wml::fmt::sdf(3)
- wml::mod::version(3)
- wml::sys::compat1(3)
- wml::imp::csmap(3)
- wml::sys::all(3)
- wmb(1)
- wml_faq(7)
- wml_tutorial(7)
- wml::des::preload(3)
- wml::std::toc(3)
- wml::des::rollover(3)
- wmd(1)
- wml::sup::path(3)
- wml::std::lang(3)
- wml::std::page(3)
- wml::des::typography(3)
- wml-params-conf(1)
- wml::imp::all(3)
- wml_p7_htmlfix(1)
- wml::fmt::xtable(3)
- wml::fmt::all(3)
- wml_p9_slice(1)
- wml::imp::generic(3)
- wml_p1_ipp(1)
- wml::std::case(3)
- wml::std::info(3)
- wml::fmt::text(3)
- wml::des::all(3)
- wml::std::grid(3)
- wml::mod::all(3)
- wml_macros(7)
- wml::std::all(3)
- wml_aux_map2html(1)
- wml::std::box(3)
- wml_p8_htmlstrip(1)
- wml_intro(7)
- wml::des::lowsrc(3)
- wml::sys::bootp3(3)
- wml::fmt::isolatin(3)
- wml::std::tags(3)
- wmd_missing(1)
- wml_aux_htmlinfo(1)
- wml::fmt::pod(3)
- wml::imp::fsview(3)
- wml::all(3)
apt-get install wml
Manual
| wml::des::preload(3) | EN Tools | wml::des::preload(3) |
NAME
wml::des::preload - Preload Images
SYNOPSIS
#use wml::des::preload <preload src=<image filename> via=<trick>>
DESCRIPTION
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).
AUTHORS
Ralf S. Engelschall rse@engelschall.com www.engelschall.com Denis Barbier barbier@engelschall.com
REQUIRES
Internal: P1, P2 External: --
SEE ALSO
wml::std::tags(3) HTML 3.2 "<img>" tag.
| 2020-11-29 | EN Tools |