title: autofocus not working if body is hidden?
body: <p>my login page has an input with "autofocus" property:</p>
  
  <pre><code>&lt;input class="username" type="text" placeholder="Username" autofocus required="required" value=""&gt;
  </code></pre>
  
  <p>This works... But I would like to hide the body until it has completely been loaded:</p>
  
  <pre><code>&lt;body style="visibility: hidden;" onload="$('body').css('visibility', 'visible');"&gt;
  </code></pre>
  
  <p>This also works, but now, the autofocus property seems to be ignored... Is there a way to make both autofocus and body/hidden working?</p>
  
  <p>Thanks,
  Fred</p>
  
  <p>PS: sorry for my poor english!</p>