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

Page freezes whilst loading scrollbar #58

Open
frazerwilson2 opened this issue Jan 26, 2017 · 3 comments
Open

Page freezes whilst loading scrollbar #58

frazerwilson2 opened this issue Jan 26, 2017 · 3 comments

Comments

@frazerwilson2
Copy link

My angular app has a long loading time (15-20s!) which I identified is caused not by fetching data from API but the scrollbar loading on the page. Until the scrollbar is loaded the page freezes and is unscrollable.

I suspect this could be that as the data is loaded onto the page the scrollbar is resizing each time. The angular events for updateScrollbar do not work, is there another way to dynamically stop the scrollbar then start it when my data loads?

@frazerwilson2
Copy link
Author

I have discovered the issue is caused by this line in the original js file:

return function () { return delegateMethod.apply(contextObject, arguments); }

this command runs 360 times on one page and wont allow user to scroll page until this completes. can anyone shed any light on what this does and a way to prevent it running hundreds of times?

@iominh
Copy link
Owner

iominh commented Jan 27, 2017

hi @frazerwilson2, ng-scrollbars is just a wrapper around malihu-custom-scrollbar so it's possible the issue you're seeing is documented in that repo: https://github.com/malihu/malihu-custom-scrollbar-plugin

If that issue doesn't occur for the original library then there's something happening in ng-scrollbars that's causing this problem

@IanConery
Copy link

So I had a similar issue and found, malihu/malihu-custom-scrollbar-plugin#182
The solution that worked for me was to add the following to the config object

advanced:{ updateOnImageLoad:false }

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

3 participants