Added a missing %endif after page-performance data attribute addition to body element.
Changed the execution time and send of the navigation timing info to 500ms after firing the load event.