# Minimising p5.min.js further for production

**URL:** <https://discourse.processing.org/t/minimising-p5-min-js-further-for-production/38158>\
**Category:** p5.js\
**Created:** [July 30, 2022, 1:55am UTC](https://discourse.processing.org/t/minimising-p5-min-js-further-for-production/38158 "2022-07-30T01:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khan360](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@khan360](https://discourse.processing.org/u/khan360)\
**Post date:** [July 30, 2022, 1:55am UTC](https://discourse.processing.org/t/minimising-p5-min-js-further-for-production/38158/1 "2022-07-30T01:55:05Z")

</div>

So as of today, `p5.js` is on version `1.4.2` and the minified file stands at a whopping `804KB` filesize.

I am a website developer and have been learning and getting better at it since some months now and want to use it on client sites as animated backgrounds to add some zing. I do know that the raw `p5.js` is a collection of a lot of sub-libraries and with a total size of around `4MBs`. How can I shave off unwanted libraries safely from the parent `p5.js` file and then minimise it for production use?

Someone pointed out to me on FB that the `opentype` library is the biggest ‘file’. But I am not too good with Github I guess as I wasnt able to find this file in the `p5.js` [repo](https://github.com/processing/p5.js).

I almost never use **sound, video, ASCII, typography** functions. And if my sketch is purely 2D, the 3D library too doesn’t serve me any purpose. So I want to save small sized versions of the p5.min.js file on my system to use on a per project basis. Please help me understand this. I do not want to waste these past months of hard work.

Thank you.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 30, 2022, 6:29am UTC](https://discourse.processing.org/t/minimising-p5-min-js-further-for-production/38158/2 "2022-07-30T06:29:01Z")

</div>

> [@khan360](#):
>
> … and with a total size of around `4MBs`.

Try out q5.js: 💡

> **[GitHub - LingDong-/q5xjs: A small and fast alternative (experimental)...](https://github.com/LingDong-/q5xjs)**
>
> A small and fast alternative (experimental) implementation of p5.js - GitHub - LingDong-/q5xjs: A small and fast alternative (experimental) implementation of p5.js
