mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-17 02:59:52 +00:00
backend/frontend init
This commit is contained in:
parent
518c975791
commit
4f44b171b9
24 changed files with 11303 additions and 0 deletions
15
code/frontend/vogel-social-media/src/reportWebVitals.ts
Normal file
15
code/frontend/vogel-social-media/src/reportWebVitals.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { ReportHandler } from 'web-vitals';
|
||||
|
||||
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
||||
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;
|
Loading…
Add table
Add a link
Reference in a new issue