Check out my latest project: Full Frontal JavaScript Conference

Archive for the "dom" Tag

Defining The Vomit Bug

The more I test HTML 5 and the more I play around in the DOM, the more I find odd situations that will trigger particular bugs. The one result I'm seeing is what I'm now referring to as a vomit bug.

Delay the DOM ready event / Generate a dummy file

dd if=/dev/zero of=dummy.file bs=1000000 count=1 This will generate a 1Mb (approx) file. Useful for tests. In my particular case, I'm trying to delay the DOM ready event in JavaScript - so I'm going load a large file in a script tag - which will load before the DOM ready is fired. To delay the DOM [...]

Catch click events before the DOM is loaded

I'm currently working on a project that's heavily JavaScript driven. One of the key goals of the project is to get the user to click a bright yellow button (I won't go in to any more detail than that). The button is perfect, it's eye catching and when you see it, you just want to [...]