We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2ade14 commit efa541aCopy full SHA for efa541a
polaris-react/src/components/SkeletonPage/SkeletonPage.tsx
@@ -35,9 +35,14 @@ export function SkeletonPage({
35
useEffect(() => {
36
// performance mark on skeleton unmount to help with page load tracking
37
return () => {
38
- performance.mark('polaris:page_skeleton:unmount');
39
- }
40
- }, [])
+ const mark = performance?.mark?.('polaris:page_skeleton:unmount');
+ console.log(
+ 'unmounting skeleton...',
41
+ mark,
42
+ performance.getEntries().length,
43
+ );
44
+ };
45
+ }, []);
46
47
const titleContent = title ? (
48
<h1 className={styles.Title}>{title}</h1>
0 commit comments