Issues

JavaScript: Contains JavaScript Content

back to issues overview

Contains JavaScript Content

Pages that contain body text that’s only discovered in the rendered HTML after JavaScript execution.

How to Analyse in the SEO Spider

Enable JavaScript rendering mode via ‘Config > Spider > Rendering’ and select ‘JavaScript’ to crawl JavaScript websites.

View URLs with this issue in the ‘JavaScript’ tab and ‘Contains JavaScript Content’ filter.

Review the ‘HTML Word Count’ (before JavaScript has been processed) and the ‘Rendered HTML Word Count’ (after JavaScript has been processed) columns to view the extent of content that relies on JavaScript.

The ‘Word Count Change’ and ‘JS Word Count %’ columns highlight the differences and proportion of the page that relies upon JavaScript to deliver the content.

Enable ‘Store HTML’ and ‘Store Rendered HTML’ via ‘Config > Spider > Extraction’ to see the differences in the lower ‘View Source’ tab. Switch the ‘HTML’ filter to ‘Visible Content’ and click ‘Show Differences’ to see the differences in words between the raw and rendered HTML.

Read our tutorial on ‘How To Crawl JavaScript Websites‘.

What Triggers This Issue

This issue is triggered when pages contain body text that only becomes visible in the rendered HTML after JavaScript execution, and is not present in the raw HTML.

How To Fix

While Google is able to render pages and see client-side only content, consider including important content server side in the raw HTML.

Further Reading

Back to top