DEV Community

Discussion on: Create a generative landing page & WebGL powered background animation

Collapse
 
groundhogs profile image
Ground Hogs

Is pixi still and 800kb dep?

Collapse
 
georgedoescode profile image
George Francis

Good question! I don't think it's that large. Checking out pixijs.io/customize/, a bundle with everything included (apart from a canvas fallback) comes in around 393kb. I think one could customise their build and end up with a bundle size of < 200kb, though, for sure. It's still quite large for a single animation and in reality, I would likely load PIXI dynamically after the rest of the page had rendered, and I had checked the user's motion preferences.

Collapse
 
groundhogs profile image
Ground Hogs

Great to see pixi advance this much! I see that with all bells and whistles included it's about 400kb, which is acceptable! If only the docs were nicer, I'd prob see myself using it for a lot of things