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

Very slow on Tablets #23

Open
dustinduse opened this issue Dec 14, 2018 · 4 comments
Open

Very slow on Tablets #23

dustinduse opened this issue Dec 14, 2018 · 4 comments

Comments

@dustinduse
Copy link

I am having an issue where this is very slow on tablets. It causes the page to hang on loading for 10-15 seconds then when you try to open the box it can take 5 seconds before anything happens.

Has anyone had this issue before?. Or is this not designed for such large amounts of options? I have 1409.

@sengirab
Copy link
Owner

Are you experiencing this only on tablet?

I tested my dropdown with 1000. Performance was OK. I’ll look into the performance once more.

@dustinduse
Copy link
Author

Yes. On a pc there is no real noticeable hang or lag to open the drop down. Is it possible to render the box serverside?

@sengirab
Copy link
Owner

I dont think server rendering will fix your lag to be honest.. Its a lightweight angular component. It wont really add much to your bundle size, slow internet could be a cause of your initial load time.

Anyway, https://angular.io/guide/universal might be worth checking out if we’re talking about server side rendering.

Another option would be to make your dropdown async, e.g creating an endpoint to fetch results filling the dropdown. Its explained in #17

@dustinduse
Copy link
Author

dustinduse commented Dec 17, 2018

Yes, I toyed with async for a little while. I was unable to get it to work properly with my endpoint.
If there is any kind of testing you would like me to do and submit to help you maybe figure out what the issue might be? As for connection, it is NOT a factor.

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