$ (document). ready equivalent without jQuery - Stack Overflow I have a script that uses $(document) ready, but it doesn't use anything else from jQuery I'd like to lighten it up by removing the jQuery dependency How can I implement my own $(document) ready