ContentLoaded - TEST CASE

UPDATED: 20101020 Version 1.2 (completely abandoned UA sniffing)

When can I use/start manipulating the DOM with Javascript ?

Quick answer: as soon as the DOM is ready ! But when is that and how are we notified ?

The objective of this test is to evaluate the detection reliability of this method.

In this specific case we are interested in determining when all the nodes in the
requested page have been loaded and parsed in the DOM and available to scripts.

The fact that images exists or not in the page shouldn't affect this test.

The test case executes these steps, in sequence, at different times:

  1. INLINE STYLE is applied and the BODY background color is set to "lime"
  2. Ending BODY SCRIPT is executed and the background color is set to "red"
  3. ContentLoaded function is fired and the background color is set to "green"

ContentLoaded tests

The page should have a "green" background color after being loaded completely.
If that is not the case then something went wrong in my script or in your browser.


This filler ensure exceeding the default 4Kb output caching of Apache.

test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test

This filler ensure exceeding the default 4Kb output caching of Apache.

test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test

This filler ensure exceeding the default 4Kb output caching of Apache.

test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test

This filler ensure exceeding the default 4Kb output caching of Apache.

test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test test test testtest test testtest test testtest test testtest test testtest test test