Skip to main content
Participating Frequently
January 30, 2023
Question

Why Adobe PDF Embed API are so slow on mobile?

  • January 30, 2023
  • 1 reply
  • 1279 views

I tried every possible configuration, Adobe PDF Embed API run super fast on desktop but very slow on mobile, even on high end android devices. This problem is since from the beginning, is not related to new 2023 API.

Here there are 2 links for a small catalogue and a big one, performance is really bad on both just on mobile. Host is super fast with 1GB upload dedicated.

 

the small one

https://anekitalia.com/catalogo-nave-it/ 

the big one

https://anekitalia.com/catalogo-soggiorni/ 

 

the script is super simple as basic adobe configuration:

 

<div id="adobe-dc-view"></div>
<script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
<script type="text/javascript">
    const isMobile = localStorage.mobile || window.navigator.maxTouchPoints > 1;
    document.addEventListener("adobe_dc_view_sdk.ready", function(){ 
        var adobeDCView = new AdobeDC.View({clientId: "XXXXXXXXXXXXXXXXXX", divId: "adobe-dc-view", locale: "it-IT"});
        adobeDCView.previewFile(
            {
                content:{
                    location: {
                        url: "https://anekitalia.com/catalogo-soggiorni"
                    }
                },
                metaData:{
                    fileName: "catalogo-soggiorni"
                }
            },
            {
                defaultViewMode: (isMobile ? "SINGLE_PAGE" : "FIT_PAGE"),
                showAnnotationTools: false,
                enableLinearization: true
            }
        );
    });
</script>

 

Is there a solution for this?

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
January 30, 2023

I took a quick look, and noticed the PDF is quite large, 22 megs. That's going to take a bit of time to process over a cell network. 

Participating Frequently
January 30, 2023

I reported a small one, it's lagging same way, in italy we have 4g connections around 50MBs.

Raymond Camden
Community Manager
Community Manager
January 31, 2023

Ok, I'll report this internally. That's the best I can do right now though, sorry.