# Long files loading

**URL:** <https://pdfjs.community/t/long-files-loading/1721>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [May 30, 2022, 7:06am UTC](https://pdfjs.community/t/long-files-loading/1721 "2022-05-30T07:06:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user53](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@user53](https://pdfjs.community/u/user53)\
**Post date:** [May 30, 2022, 7:06am UTC](https://pdfjs.community/t/long-files-loading/1721/1 "2022-05-30T07:06:52Z")

</div>

Hi,

It takes too long to load some files (around 30sec). Their size is less than 1 MB. When I load such files, I also get friezes. I have discovered if there is added documentLoaded listener with instance.UI.openElements([‘notesPanel’]); instance.UI.openElements([‘thumbnailsPanel’]); inside, then load time increases up to 2 minutes. Could you find out the reason and reduce the loading time?

File for reproducing:  
[https://sharebox.codevog.com/download/CY5nz6pnTOZrUuaZ04kD2l\_upXYtiAJvYgGuE8I9Hls](https://sharebox.codevog.com/download/CY5nz6pnTOZrUuaZ04kD2l_upXYtiAJvYgGuE8I9Hls)

Thanks,  
Martin
