This is a pretty decent post on js indexing for SEO. It’s a super common problem people have when developing a site. “Is Google gonna index all of this hidden content?”
The answer is: Maybe.
Takeaways from the post:
- It depends on how you write it. Inline vs. External vs. Bundled makes a difference
- Removing a site’s reliance on JS is a good thing
The end answer is be really careful with js, and if there’s a lot of it on your site make sure it’s damn near perfect.