Reverse the order of event handlers and prefix & data preloading.