I echo what others like @sharkweek are saying - Google has been saying that they index JavaScript for quite a while now. At I/O 2019 they said the crawler should be on the latest Chromium codebase that supports all modern JavaScript features. I built some test cases [0] to see if this is true, and just couldn't get Google to index content inserted via JavaScript. For example, scroll down to the Popover button test case.
Maybe I'm doing something wrong? Open to feedback. Opensourced code is here [1].
[0]https://shan.io/will-it-index/
[1]https://github.com/rayshan/rayshan.github.io/tree/master/wil...