# 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:** 2\
**Page:** 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) => {
        });
    }
}
```

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [October 28, 2020, 2:56pm UTC](https://pdfjs.community/t/the-page-freeze-when-loading-the-document-and-scrolling-into-this/363/2 "2020-10-28T14:56:59Z")

</div>

Hi there,

Can you reproduce this issue in 7.1.2? There was a regression in 7.1.1 that may cause this.
