A slow game of life

Hi,
I need help for my game of life :
github : https://github.com/Lukkyz/Game_Of_Life/tree/master
page : https://lukkyz.github.io/Game_Of_Life/

My game seems very slow comparate to another game of life on the web, I used a lot of loop. Any advice for increase the quality of my code and the performance of my game ?

Thank you

Hello!

You’re having poor performance because of your implementation. Migrate it to HTML5 canvas and you will have better performance.

In its current state, your game loop is never ending; the interval is never cleared. But even if that’s fixed, the events are not handled correctly without using canvas (try and see).

I hope you can fix it. It’s a great way to learn :slight_smile:,

Happy coding!