1. We're having load issues. Slow to load and we get white pages that EVENTUALLY go away.
- Any ideas from power users for speeding up the loading time because of the white/blank page on load issue?
2. We considered having the pdf live on our AMAZON S3 instead of on the site, but that's not working. Is there a way to have a document that lives somewhere else appear on the site? If so, would this solve our loading/white page issue?
Copy link to clipboard
Are you referencing the PDF content by URL or a Promise?
In almost every case, I recommend using fetch to get the PDF content first, then pass it to Embed API as a Promise that resolves to a Byte Array. That should help with both questions 1 and 2. For #2, be sure you have CORS set up properly on the bucket to allow your files to be loaded from S3.