example: document.write withOUT ControlJS


This page contains a script that uses document.write to output a blue rectangular DIV. This script is configured to take 2 seconds to download and 2 seconds to execute. The time at which the document.write takes place is shown, as well as the page load time. There's also an image at the bottom of the page that takes 2 seconds to download.

This page does uses ControlJS. This has several benefits:

See ControlJS part 3: overriding document.write for more information.