Is it safe to attach an event listener to $(document) before DOM ready?
===

Is the following code safe? Will `document` be available?

    <html>
      <head>
        <script type="text/javascript">
          $(document).delegate(".my-class", "click", function() { /* do something here */ } );
        </script>
      </head>
    </html>