Changing how the prerenderReady event is emitted