You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,19 @@ claim to serve it.
142
142
143
143
This is a string that's inserted into the overlay, in order to provide users with additional information. It's useful if you'd like to provide feedback to users of your server, like "If you run into issues, try running restart_server_please.sh". This string may contain valid HTML.
144
144
145
+
#### `perfMarkerPrefix`
146
+
147
+
- Type: `String`
148
+
- Default: `""`
149
+
150
+
The overlay will fire 3 performance markers:
151
+
152
+
- performance.mark("kevin-overlay-start") - when the overlay first renders
153
+
- performance.mark("kevin-overlay-end") - assets are finished building, and right before the page refreshes
154
+
- performance.measure("kevin-overlay") - right after the above, indicating total time overlay was visible to user.
155
+
156
+
If you would like to add a prefix to these marker names, you may pass it in as an option, otherwise the marker names will be as below. Please see documentation on performance markers here: https://developer.mozilla.org/en-US/docs/Web/API/Performance.
157
+
145
158
## Hooks
146
159
147
160
To further extend Kevin's capabilities, we used Webpack's [Tapable][tapable] framework to provide access to some of Kevin's core functionality. You can use a hook much like you would with Webpack:
0 commit comments