Opening the notifications settings page with a large amount of groups (1246 groups) causes unusability

Summary

opening the notification settings (gitlab.com/profile/settings) page causes a freeze to load all 1246 groups I am a part of. On unfreezing, the page is barely responsive.

Steps to reproduce

go to https://gitlab.com/profile/notifications with 1246 groups

Example Project

N/A

What is the current bug behavior?

freezing and general unresponsiveness

What is the expected correct behavior?

minimal to no lag of loading and immediate availability of the UI elements

Relevant logs and/or screenshots

N/A

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

Pagination