Moving profiling before load event