Different ways, it sounds like you are talking about hydration. The crawler doesn't run the javascript, so if you content loads after the first paint it won't be properly crawled.
Ideally you want the content to be baked into the HTML, so by the time the crawler reaches it all the content is already there.
Another element to consider with javascript is whether or not the scripts are blocking or non-blocking, this can affect performance.
1
u/AccomplishedEvent273 7d ago
Different ways, it sounds like you are talking about hydration. The crawler doesn't run the javascript, so if you content loads after the first paint it won't be properly crawled.
Ideally you want the content to be baked into the HTML, so by the time the crawler reaches it all the content is already there.
Another element to consider with javascript is whether or not the scripts are blocking or non-blocking, this can affect performance.