Load Issues/White Pages and external document location possible?

Explorer ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

Two Questions:

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?

TOPICS
How to , PDF Embed API

Views

76

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

Are you referencing the PDF content by URL or a Promise?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 26, 2021 Jul 26, 2021

Copy link to clipboard

Copied

URL

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2021 Jul 26, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources