# The page freeze when loading the document and scrolling into this

**URL:** <https://pdfjs.community/t/the-page-freeze-when-loading-the-document-and-scrolling-into-this/363>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [October 27, 2020, 9:07am UTC](https://pdfjs.community/t/the-page-freeze-when-loading-the-document-and-scrolling-into-this/363 "2020-10-27T09:07:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![poitevinromain](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@poitevinromain](https://pdfjs.community/u/poitevinromain)\
**Post date:** [October 27, 2020, 9:07am UTC](https://pdfjs.community/t/the-page-freeze-when-loading-the-document-and-scrolling-into-this/363/1 "2020-10-27T09:07:26Z")

</div>

**PDF.js Express Version**  
7.1.1

**Detailed description of issue**  
The page freeze when loading the document or when scrolling in the document.  
For information, I using VueJs with TypeScript. For try to understand the problem, I just load the document with the parameter initialDoc in the WebViewer component.  
I think there is a memory leak in the library because I get an abnormal cpu load when the page freezes.  
Have you ever had this problem?

**Expected behaviour**  
An application that works without slowing down.

**Link to document**

**Code snippet**

```
import WebViewer from '@pdftron/pdfjs-express';
import {Prop, Vue} from "vue-property-decorator";
import Component from "vue-class-component";

@Component
export default class Viewer extends Vue {
    @Prop(String)
    private path!: string;
    @Prop(String)
    private url!: string;
    @Prop(Boolean)
    private readOnly!: boolean;

    mounted(): void {
        WebViewer({
            path: this.path,
            initialDoc: this.url,
            extension: 'pdf',
            disabledElements: ['printButton', 'printModal', 'downloadButton'],
            isReadOnly: this.readOnly
        }, this.$refs.viewer).then((instance) => {
        });
    }
}
```

---

_[View the full topic](https://pdfjs.community/t/the-page-freeze-when-loading-the-document-and-scrolling-into-this/363)._
