Always test your pages using Google’s own tools and third-party resources to view the rendered HTML to make sure all your content is showing up. Google has come a long way with rendering JavaScript.
JavaScript-based webpages may appear blank or incomplete in Google’s cache, which is normal and not indicative of any problems. This is stated by Google’s Search Advocate John Mueller in the latest ...