Check out my latest project: JSBin - live JavaScript pastebin

Archive for the "dom" Tag

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 [...]