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

It's a bloatware - the size is too big for a single component - 208KB gzipped / minified #300

Closed
ghost opened this issue Feb 27, 2018 · 4 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 27, 2018

image

I generated released map files with ionic:
./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build --prod --generateSourceMap true
and checked
source-map-explorer main.js{,.map}

It's a luxury that a select cost 200KB. I have reimplemented ionic, and every component of mine cost 150KB. I hate node libraries it's just a waste of time.

To be able to send a service message with firebase it cost 600KB. If you use the select on a webpage, it's not feasible.

I had problems with the ngModel on select multiple, now i need to implement. My experience is on all node libraries, to reimplement it's easier and faster method, instead of fixing bugs, or looking for performance issues.

That's why i'm pretty soon deprecating the whole ionic.

@ghost ghost changed the title It's a bloatware It's a bloatware - the size is too big for a single component - 208KB gzipped / minified Feb 27, 2018
@anjmao
Copy link
Member

anjmao commented Feb 27, 2018

Hi @fssrepository, last time I checked it was only 45kb minified, will check this as soon as possible, it looks some rxjs operators may take a lot of size.

@anjmao
Copy link
Member

anjmao commented Feb 28, 2018

I can confirm that one recent feature caused this problem.

@anjmao anjmao added the bug label Feb 28, 2018
@anjmao anjmao self-assigned this Feb 28, 2018
@anjmao anjmao mentioned this issue Feb 28, 2018
@anjmao anjmao closed this as completed in fc5c58a Feb 28, 2018
@anjmao
Copy link
Member

anjmao commented Feb 28, 2018

@fssrepository Checkout new version. Now it is only 15KB gzipped.

-rw-r--r--  1  staff    15K Feb 28 09:41 ng-select.umd.js.gz
-rw-r--r--  1  staff  140K Feb 28 09:41 ng-select.umd.js.map
-rw-r--r--  1  staff    46K Feb 28 09:41 ng-select.umd.min.js
-rw-r--r--  1  staff  128K Feb 28 09:41 ng-select.umd.min.js.map

@ghost
Copy link
Author

ghost commented Mar 16, 2018

Yes, the first thing what i replaced in my framework was the rxjs. Thanks for your response.

jakemdunn pushed a commit to jakemdunn/ng-select that referenced this issue Oct 16, 2018
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