Why Adobe PDF Embed API are so slow on mobile?
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?
