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

reduce size #570

Open
mandolin opened this issue Sep 12, 2024 · 1 comment
Open

reduce size #570

mandolin opened this issue Sep 12, 2024 · 1 comment

Comments

@mandolin
Copy link

Hi, Coming from HTMX.I feel that EHTML has a different focus and inclination. However, it does offer some additional features from a practical standpoint. I'll try to use both.

The main issue is the library's size. It's 1.8MB, and even the light version is 125KB.

I suggest splitting it into core functionality and implementing other features as plugins or extensions. Maybe to keep the core library size between 30KB and 50KB, and do not exceed above 100KB.

@Guseyn
Copy link
Owner

Guseyn commented Sep 12, 2024

@mandolin Hi
You can use compression to reduce bandwidth and then caching + CDN to eliminate such problem. I am not really concerned about lib size in my case, because it's almost all JS I need to use in my applications. But if your case is different, feel free to suggest what could be considered as core features, and what should be more suited for plugins.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants