Ensure document html has loaded before running initiations on editor and ui