Slow load time

Any idea how to block admin page from loading to users because it makes my website slow
1 Reply
Matvey
Matvey14mo ago
lazy() and dynamic imports
import { lazy } from 'react';

const ComponentOnlyForAdmins = lazy(() => import('./ComponentOnlyForAdmins'));
import { lazy } from 'react';

const ComponentOnlyForAdmins = lazy(() => import('./ComponentOnlyForAdmins'));
it will import it only when it's visible
Want results from more Discord servers?
Add your server