# What happens between Google's initial HTML fetch and JavaScript rendering?

> The initial HTTP response may contain complete content or only an application shell.

Example:

`<div id="app"></div>
<script src="/app.js"></script>
`
The rendering system can execute JavaScript and produce:

`<h1>Technical SEO Course</h1>
<a href="/courses/technical-seo">Learn more</a>
`
Google can then use the rendered output for indexing and discover additional links.

This is why comparing **raw response HTML** with the **rendered DOM** is valuable during a JavaScript SEO audit.

## Sources

- [Google Search Central — Javascript SEO Basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)

## Related questions

- [How can JavaScript affect canonical tags?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-canonical-tags.md)
- [How can JavaScript affect internal linking?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-internal-linking.md)
- [How can you determine whether important content is available in rendered HTML?](https://www.theseocentral.com/technical-seo-faq/how-can-you-determine-whether-important-content-is-available-in-rendered-html.md)
- [How do JavaScript redirects affect SEO?](https://www.theseocentral.com/technical-seo-faq/how-do-javascript-redirects-affect-seo.md)
- [How does Google process JavaScript-heavy websites?](https://www.theseocentral.com/technical-seo-faq/how-does-google-process-javascript-heavy-websites.md)
- [How would you audit a React, Next.js, Vue or Angular website for SEO?](https://www.theseocentral.com/technical-seo-faq/how-would-you-audit-a-react-next-js-vue-or-angular-website-for-seo.md)
- [How would you diagnose a JavaScript SEO problem?](https://www.theseocentral.com/technical-seo-faq/how-would-you-diagnose-a-javascript-seo-problem.md)
- [What happens when server-rendered HTML differs from client-rendered HTML?](https://www.theseocentral.com/technical-seo-faq/what-happens-when-server-rendered-html-differs-from-client-rendered-html.md)
- [When would you recommend SSR, CSR, SSG or hybrid rendering?](https://www.theseocentral.com/technical-seo-faq/when-would-you-recommend-ssr-csr-ssg-or-hybrid-rendering.md)

---

Answered by Abhinav Krishna (https://www.theseocentral.com/author/abhinav-krishna)
Source: https://www.theseocentral.com/technical-seo-faq/what-happens-between-google-s-initial-html-fetch-and-javascript-rendering
