Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageBuilder with custom elements creates large js file causing slow initial load times #4371

Open
hemzet opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@hemzet
Copy link

hemzet commented Nov 8, 2024

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

@hemzet hemzet added the bug label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant