title: Avoiding a freeze when executing all javascript functions onDomReady / onDomLoaded
body: <p>So I want to migrate all my javascript functions to requireJS and will try to use as much as possible the ondomready event. BUT:</p>
  
  <p>this will freeze the browser, since all javascript is synchronously. This is bad. I mean wow the user sees the browser content a bit faster, but is going to try to click somewhere just to realize the browser was frozen, and has to click again. This is very bad. Is there a way around this?</p>