Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이준성
/
khuwitch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
ijunseong
2020-11-29 22:45:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6d481366adad459048d69ed4951ebc5f8c3b8604
6d481366
1 parent
767f6a7f
Add: src/reportWebVitals.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
src/reportWebVitals.js
src/reportWebVitals.js
0 → 100644
View file @
6d48136
const
reportWebVitals
=
onPerfEntry
=>
{
if
(
onPerfEntry
&&
onPerfEntry
instanceof
Function
)
{
import
(
'web-vitals'
).
then
(({
getCLS
,
getFID
,
getFCP
,
getLCP
,
getTTFB
})
=>
{
getCLS
(
onPerfEntry
);
getFID
(
onPerfEntry
);
getFCP
(
onPerfEntry
);
getLCP
(
onPerfEntry
);
getTTFB
(
onPerfEntry
);
});
}
};
export
default
reportWebVitals
;
Please
register
or
login
to post a comment