windowPerformance: improve DOM timing metrics

Resolves #360