Skip to content

Instantly share code, notes, and snippets.

@Offirmo
Last active December 2, 2018 07:51
Show Gist options
  • Save Offirmo/ece809ce5bdc4c81205e0eae848bf4d2 to your computer and use it in GitHub Desktop.
Save Offirmo/ece809ce5bdc4c81205e0eae848bf4d2 to your computer and use it in GitHub Desktop.
[User timing measurement with marky] #TypeScript #JavaScript #frontend
import 'marky'
const user_timing_measurement = (window as any).user_timing_measurement
user_timing_measurement.mark('bootstrap')
...
user_timing_measurement.stop('bootstrap')
// https://www.html5rocks.com/en/tutorials/webperformance/basics/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment