Development mode (localhost) is very different from the production mode. It is many times slower, and it requires a lot of memory. This is why your browser freezes. You can:
- Try a different browser. You may have a better performance on your system.
- Add memory to your computer.
- Optimize your code. There are many ways to do it. As a first step you need to understand what causes a problem: processing data or rendering of a page.
- Finally, deploy your code to the production environment and check if you experience the same problems.