# Load multiple instances on a single page without loading same js files

**URL:** <https://pdfjs.community/t/load-multiple-instances-on-a-single-page-without-loading-same-js-files/1173>\
**Category:** Technical Support\
**Created:** [November 9, 2021, 7:56pm UTC](https://pdfjs.community/t/load-multiple-instances-on-a-single-page-without-loading-same-js-files/1173 "2021-11-09T19:56:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@andy](https://pdfjs.community/u/andy)\
**Post date:** [November 9, 2021, 7:56pm UTC](https://pdfjs.community/t/load-multiple-instances-on-a-single-page-without-loading-same-js-files/1173/1 "2021-11-09T19:56:29Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
8.1.1

**Detailed description of issue**  
We have situations where we need to load 1-4 pdfs on a single page, however I noticed that it will load duplicates of the same JS files. Is there a way to create instances that will share the same files and not load them all over again?

![Screen Shot 2021-11-09 at 11.54.59 AM](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/1d9d26cf3deea9ae0241a83abac84ec8415e1e6b.png)

**Expected behaviour**  
Create multiple pdf instances without loading duplicate js files.

**Does your issue happen with every document, or just one?**  
All

**Code snippet**

```javascript
<div id="document1"></div>
<div id="document2"></div>

```

```javascript
WebViewer({
    path: '/Content/pdfexpress/public',
    licenseKey: 'key',
    initialDoc: `document1.pdf`,
  }, document.getElementById('document1'))

WebViewer({
    path: '/Content/pdfexpress/public',
    licenseKey: 'key',
    initialDoc: `document2.pdf`,
  }, document.getElementById('document2'))

```

---

_[View the full topic](https://pdfjs.community/t/load-multiple-instances-on-a-single-page-without-loading-same-js-files/1173)._
