PageBuilder with custom elements creates large js file causing slow initial load times
Opened this issue · 0 comments
Version
all
Operating System
n/a
Browser
n/a
What are the steps to reproduce this bug?
When I build the website package of a webiny PageBuilder project, I have a large js file, which causes slow initial load times. I have custom components, which aren't too complex, so I don't think that's the source of this.
`ℹ Compiling Website
✔ Website: Compiled successfully in 19.21s
Compiled successfully.
File sizes after gzip:
1.44 MB build/static/js/71.59f0804f.js
47.37 kB build/static/js/562.890e2aa3.chunk.js
29.73 kB build/static/js/288.89f755e0.chunk.js
29.73 kB build/static/js/413.a3ca4663.chunk.js
27.38 kB build/static/js/190.9a2d91c1.chunk.js
21.63 kB build/static/js/main.6599ceed.js
10.82 kB build/static/css/71.9e8a54cb.css
3.72 kB (+1 B) build/static/css/main.c91db8d5.css
2.2 kB build/static/js/runtime-main.42e59b2b.js
2.09 kB build/static/css/190.6284cd0b.chunk.css
2.08 kB build/static/css/288.19eac776.chunk.css
2.08 kB build/static/css/413.19eac776.chunk.css
The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb`
What is the expected behavior?
Smaller file size
What do you see instead?
No response
Additional information
https://webiny-community.slack.com/archives/C014Y0HGJ0Y/p1730761559201789
Possible solution
No response