Only fire pre-events if the currenty page actually needs to be loaded.