Emit viewready event after render or pageload