Files
evotraders/conversational_agents/chatbot_fullstack_runtime/frontend/src/reportWebVitals.js
raykkk 7d0451131f init
2025-10-17 21:40:45 +08:00

14 lines
362 B
JavaScript

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;