Twitch TV APP page loading slow and buttons not filtering

Can anyone help me with this project? I have 2 issues

  1. I can’t seem to get my buttons to filter online from offline content.

  2. I tried really hard to get my api working and when I finally did. I notice the page takes really long to load and console gives the error “[CodePen]: An infinite loop (or a loop taking too long) was detected, so we stopped its execution. Sorry!”

Please if anyone can give me a hint on how to fix these issues.

See the Pen FCC | Twitch-TV by Keron Matthews (@keronmat) on CodePen.