# Decrease size of js in Bitwarden web interface via moving large dictionaries to separate js files

**URL:** <https://community.bitwarden.com/t/decrease-size-of-js-in-bitwarden-web-interface-via-moving-large-dictionaries-to-separate-js-files/10104>\
**Category:** Password Manager\
**Created:** [January 27, 2020, 10:30am UTC](https://community.bitwarden.com/t/decrease-size-of-js-in-bitwarden-web-interface-via-moving-large-dictionaries-to-separate-js-files/10104 "2020-01-27T10:30:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murz](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/murz/32/2915_2.png) [@Murz](https://community.bitwarden.com/u/Murz)\
**Post date:** [January 27, 2020, 10:30am UTC](https://community.bitwarden.com/t/decrease-size-of-js-in-bitwarden-web-interface-via-moving-large-dictionaries-to-separate-js-files/10104/1 "2020-01-27T10:30:20Z")

</div>

Bitwarden web interface loads too slow. I lookup the network stats and see two large js files, loaded on every page:  
[https://vault.bitwarden.com/app/vendor.ec909defcac642ca81ce.js](https://vault.bitwarden.com/app/vendor.ec909defcac642ca81ce.js) - 2.37 MB  
[https://vault.bitwarden.com/app/main.ec909defcac642ca81ce.js](https://vault.bitwarden.com/app/main.ec909defcac642ca81ce.js) - 2.64 MB

I lookup to those files, and they contains large dictionaries, that used not on every page, at least those tho ones:

- passwords (seems week passwords db) - 792 kb
- EEFLongWordList - 78 kb

As I understand, those dictionaries are used only when user fill new password. So will be good to move them from main files to separate files, that will be lazy loaded on demand. This will increase web interface loading speed and decrease web app cpu load!

---

<div class="post-metadata">

**Author:** ![Murz](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/murz/32/2915_2.png) [@Murz](https://community.bitwarden.com/u/Murz)\
**Post date:** [January 27, 2020, 10:31am UTC](https://community.bitwarden.com/t/decrease-size-of-js-in-bitwarden-web-interface-via-moving-large-dictionaries-to-separate-js-files/10104/2 "2020-01-27T10:31:15Z")

</div>

Also maybe some other functions, that used not on all pages, can be extracted from main js files and moved to separate files.

---

<div class="post-metadata">

**Author:** ![bw-admin](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@bw-admin](https://community.bitwarden.com/u/bw-admin)\
**Post date:** [February 8, 2025, 12:51pm UTC](https://community.bitwarden.com/t/decrease-size-of-js-in-bitwarden-web-interface-via-moving-large-dictionaries-to-separate-js-files/10104/3 "2025-02-08T12:51:47Z")

</div>

Closed on February 8, 2025, 12:51pm UTC

Feel free to ping if you want this feature request reopened.
