# Why app runs slow in local?
There are three main reasons why the app runs slow in your local system:
getStaticProps
has about 2-3 seconds of redundant overhead during development. Please refer this issue (opens new window) confirming the same. In case you replacegetStaticProps
withgetServerSideProps
you can resolve this issue but that won't be the case always, as you may not need server side props always.- Some components of MUI are very complex and thus it takes some time to render those components on your local system.
- MUI components use
sx
prop andstyled
function which are internally styling the components using emotion (opens new window). When emotion is used, all the components take a little bit more time to render than normal.
You may refer this MUI discussion (opens new window) for detailed information on why MUI v5 is very slow.
When your app is running on your server or your site is live, you will not face this issue. It will run normally on the server.