There is this great post on how to Embed Discourse comments on another website via Javascript. However, there are communities where website visitors may not be running javascript. And if not for that, I would argue from the SEO perspective that there should be a way to embed site comments without javascript.
After paying a bit around I find that it can be easily implemented in a much simpler way without any javascript. It’s just a matter of following:
<iframe id="discourse-embed-frame" scrolling="no" referrerpolicy="no-referrer-when-downgrade"
src="https://<DISCOURSE_URL>/embed/comments/?embed_url=<WEBSITE_PAGE_URL>%2F&discourse_username=system"
width="100%" height="3271px" frameborder="0"></iframe>
For example:
<iframe src="https://meta.discourse.org/embed/comments?embed_url=https%3A%2F%2Fblog.discourse.org%2F2021%2F05%2Fdiscord-and-discourse-better-together%2F&discourse_username=rishabh"
id="discourse-embed-frame" scrolling="no" referrerpolicy="no-referrer-when-downgrade"
width="100%" height="3271px" frameborder="0"></iframe>
Is there any reason why wouldn’t work?