# Same runtime and javascript file is enqueued multiple times

**URL:** https://discourse.roots.io/t/same-runtime-and-javascript-file-is-enqueued-multiple-times/24605
**Category:** sage
**Tags:** bud, sage10
**Created:** 2023-01-19T15:41:15Z
**Posts:** 3

## Post 1 by @uraayush — 2023-01-19T15:41:15Z

This is the assets  
entrypoints  
│ ├─ app  
│ │ ├─ js/666.js 291 bytes  
│ │ ├─ css/app.css 6.03 kB  
│ │ └─ js/app.js 1.21 kB  
│ ├─ editor  
│ │ ├─ js/666.js 291 bytes  
│ │ ├─ css/editor.css  
│ │ └─ js/editor.js 1.35 kB  
│ ├─ leadspace-b  
│ │ ├─ js/567.js 231 bytes  
│ │ ├─ css/312.css 67 bytes  
│ │ ├─ js/312.js 188 bytes  
│ │ ├─ js/938.js 169 bytes  
│ │ └─ js/leadspace-b.js 1.3 kB  
│ ├─ leadspace  
│ │ ├─ js/567.js 231 bytes  
│ │ ├─ css/312.css 67 bytes  
│ │ ├─ js/312.js 188 bytes  
│ │ ├─ css/leadspace.css 29 bytes  
│ │ └─ js/leadspace.js 1.31 kB

After using  
bundle(‘leadspace’)-\>enqueue()  
bundle(‘leadspace-b’)-\>enqueue()

This will add script( js/567.js ) multiple times

 ![image](https://discourse.roots.io/uploads/default/original/2X/1/1f66400e60c3cf9b80cca9c894ee6da43ef523c0.png)

Same issue happen when using runtime()

Is there anything that i missed  
Thanks

---

## Post 2 by @ben — 2023-01-19T16:23:57Z

See [How to best ask questions on this forum](https://discourse.roots.io/t/how-to-best-ask-questions-on-this-forum/24582)

You will need to provide a minimal reproduction for further help

---

## Post 3 by @ben — 2023-01-19T16:23:58Z


