I have the problem with iCloud Notes via web browser using 12-13 GB of RAM when using Chromium-based browsers. I've found that performance using Firefox is generally awful with visual artifacts. I saw an Apple Support article with a lot of people complaining about this starting Spring 2019. It appears that it remains a problem. My only current solution is to run Notes on macOS or iOS but that's sometimes annoying as one of my main desktops runs Windows.