diff --git a/Client/src/Pages/PageSpeed/index.jsx b/Client/src/Pages/PageSpeed/index.jsx index d366e8ad2..13b5d937c 100644 --- a/Client/src/Pages/PageSpeed/index.jsx +++ b/Client/src/Pages/PageSpeed/index.jsx @@ -70,9 +70,13 @@ const PageSpeed = () => { dispatch(getPageSpeedByUserId(authToken)); }, []); + // will show skeletons only on initial load + // since monitor state is being added to redux persist, there's no reason to display skeletons on every render + let isActuallyLoading = isLoading && monitors.length === 0; + return ( - {isLoading ? ( + {isActuallyLoading ? (