views:

377

answers:

4

Hello,

Does anyone know of a good javascript DOM ready library that I can use without loading an entire framework? I found one on google code that seems to work, but the library was posted in 2008 and I can't find any confirmation on up-to-date cross browser support.

Thanks, Brian

+1  A: 

Why are you apposed to using a library like jQuery? jQuery acts as a extrapolation layer between your script and the browser's DOM, It will solve your problem completely. It also delivers some great features. Its very small to, like altCognito said above the entire jQuery library is only 19k. Using it won't confine your coding method as frameworks do in other languages, you aren't forced to conform to any specific guidelines.

I don't think that it gets any better than jQuery.

Robert Hurst
+1  A: 

Checkout Dean Edwards' base2. It contains a minimal amount of code necessary to patch up browser differences and provide nice consistent interface as per the standards. The gzipped version is only 6k.

Anurag
Thanks, I will have a look.
Brian
A: 

It seems that the safest bet is indeed to use a javascript framework. I was able to find some small DOMready libraries - but nothing written recently or claiming to be confirmed working with the most current browser releases.

Brian
+2  A: 

David Mark's "My Library" has a "DOM ready" functionality:

http://www.cinsoft.net/mylib.html

David is avid anti-framework, anti-bad-javascript-practice so it should be good quality code.

RoToRa
Also his library is completely modular so you can just use the DOM ready part without having to get "everything".
kouPhax