In this final part of a four-part series, I give you my enhancements to the AJAX approach to Active Client Pages. Before I conclude the series, I will introduce two other approaches to you. Keep reading to learn how to help your web pages load more quickly.
Most user agents have built-in mechanisms for rendering common data types such as text, GIF images, colors, fonts, and a handful of graphic elements. To render data types they don't support natively, user agents generally run external applications. The OBJECT element allows authors to control whether data should be rendered externally or by some program, specified by the author, that renders the data within the user agent.
The OBJECT element has an attribute called the archive attribute. This is what the specification says about this attribute: "This attribute may be used to specify a space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the 'classid' and 'data' attributes. Preloading archives will generally result in reduced load times for objects."
What really interests us here is the last statement, “Preloading archives will generally result in reduced load times for objects.” Note that URLs are URIs.
The HTML OBJECT Element, Images and ACP
We can make the URLs for the archive attribute be those of the images at the server. We can have an HTML OBJECT as an element in the web page. The images will be downloaded in advance as the specification indicates. We can then display the image when we want. This is a subject for an entirely separate article, which I will write in the near future.