Add check if the document is already ready, and if so skip the onload handlers. Fixes live loading of markdown forms