Wait until both head and body are loaded before rendering.  Closes #2145.