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

Friend list loads very slow and breaks on single error #5

Open
angelo-v opened this issue Jun 2, 2020 · 0 comments
Open

Friend list loads very slow and breaks on single error #5

angelo-v opened this issue Jun 2, 2020 · 0 comments

Comments

@angelo-v
Copy link

angelo-v commented Jun 2, 2020

I have ~30 people in my friend list. On my homepage they appear nearly instantly after the initial page load. ohmypod needs several seconds to show the list. Additionally the whole list breaks (shows nothing) if one friend URL fails to load (e.g. 404 or expired TLS certificate).

The problem is, that ohmypod does not parallelize requests. You are doing an await inside a for await loop. I am doing it like this, which might inspire you (while I am not saying mixing async/await style with promise.then is a good idea from code style perspective)

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

1 participant