one of the biggest performance drains is triggering animations, especially during scroll events
<script>
is a render blocking element(Lighthouse)[https://developers.google.com/web/tools/lighthouse]
can run it against any web page, public or requiring authentication. It has audits for performance, accessibility, progressive web apps, and SEO
can run Lighthouse in Chrome DevTools, from the command line, or as a Node module
npm run build
)import
and HOC asyncCompoment
techniquesReact.lazy()
is a feature in react to achieve code-splitting as well
<Suspense>
wrapper component with a fallback
when using React.lazy()
localhost:3000?react_perf
?react_perf
parameter in the browser address bar