Capturing page-performance metrics