# Embedded site stuck at "Loading Discussions"

**URL:** <https://meta.discourse.org/t/embedded-site-stuck-at-loading-discussions/341525>\
**Category:** Product Support\
**Tags:** embedding\
**Created:** [December 10, 2024, 6:23am UTC](https://meta.discourse.org/t/embedded-site-stuck-at-loading-discussions/341525 "2024-12-10T06:23:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Edrian\_C\_Bertulfo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/edrian_c_bertulfo/32/471966_2.png) [@Edrian\_C\_Bertulfo](https://meta.discourse.org/u/Edrian_C_Bertulfo)\
**Post date:** [December 10, 2024, 6:23am UTC](https://meta.discourse.org/t/embedded-site-stuck-at-loading-discussions/341525/1 "2024-12-10T06:23:06Z")

</div>

Hello! I have this issue when trying to embed Discourse to our NextJS Web App. I already tried searching for answers from the already existing thread that touches on the same error, but I haven’t been able to find a resolution for my issue.

Here’s how our embed code looks like:

```plaintext
<script id="discourse" type="text/javascript" data-nscript="afterInteractive">DiscourseEmbed = {
              discourseUrl: 'https://qanvast.discourse.group/',
              discourseEmbedUrl: 'https://web-uat.qanvast.com/sg/interior-design-singapore/forefront-interior-the-alcove-26226?image=769596',
              // className: 'CLASS_NAME',
            };

            (function() {
              var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
              d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
              (document.getElementsByTagName('head')[0] 
              || document.getElementsByTagName('body')[0]).appendChild(d);
            })();</script>

```

In the front-end, it’s just stuck in “Loading Discussions…”. At first I thought it has something to do with the CSP, but I already added the domain to the Embedding Allowlist. No errors show up in the console logs nor the Network calls.

I’ve been stuck at this for a few hours now so I’d appreciate any help.

---

_[View the full topic](https://meta.discourse.org/t/embedded-site-stuck-at-loading-discussions/341525)._
