Small, standalone dom ready. No dependency on other libraries or frameworks (such as jquery).
It's easy. Works like this:
domready(function () {
// dom is loaded!
})
Change the namespace from "domready" to "whatever" or incorporate into another object easily.
- IE6+
- Firefox 2+
- Safari 3+
- Chrome *
- Chromium *
- Opera *
Tested within a wordpress site against:
-
XP IE 6+ Firefox 3+ Safari 4+ Chrome 14+ Opera 10+
-
Win 7 IE 8+ Firefox 3+ Safari 4+ Chrome 14+ Opera 10+
-
Win 8 IE 10 Firefox 16+ Safari 5.1 Chrome 22+ Opera 12+
-
OS X 10.6 (Mountain Lion) Firefox 3.6+ Safari 6 Chrome 14+ Opera 11+
-
OS X 10.7 (Lion) Firefox 3.6+ Safari 6 Chrome 14+ Opera 11+
-
IOS (Simulator) 3.0 iPhone 3GS 5.1 iPhone 4S 6.0 iPhone 5 3.2 iPad 1 4.3 iPad 2 5.0 iPad 2 5.1 iPad 3 6.0 iPad 3 6.0 iPad Mini
-
Android (Simulator) 2.2 Samsung Galaxy S 2.3 Samsung Galaxy S II 4.1 Samsung Galaxy S III 4.2 LG Nexus 4
-
Opera Mobile (Simulator) Motorola Droid X Samsung Galaxy Tab 10.1
v2