Hello there! I've been using this code found here to embed Twitter posts on my website. It's been working perfectly on certain pages, like in the forums, but I've run into an issue while browsing through user profiles. The post history for each user is generated using AJAX due to multiple sections on the website for user activities, and that's where the problem arises. The console keeps showing me this error message:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
This error is preventing the display of Twitter posts on the page.
Any suggestions on how to embed Twitter posts synchronously? I've searched through the Twitter documentation without finding a solution so far.