Resources Transferred: Does PDF Embed API download the full file?
- August 30, 2020
- 2 replies
- 1296 views
I have several PDF files that I am linking to on a page, with embedded lightbox buttons to let users browse documents without needing to download them.
https://mdpl.org/2020/08/21/ocean-drive-master-plans/
However, when I check the Google Chrome Developer Tools->Network console, I see that there is around 97kb transferred, but after clicking the button to open the first PDF, as I scroll down the PDF, I see about 230MB+ of 'resources transferred' which goes up with each page I scroll (see attached screenshot).
My question is, when embedding large PDFs in the PDF embed API, is the entire file being downloaded for the user in the background before becoming a lightbox? It would seem inefficient to download the full file, only to display the PDF in the lightbox.
I believe it would be helpful to understand how much of the file is actually transferred when showing the lightbox.. in this example, is it only 97kb or 230MB+?
