empathyco/solid-oh-my-pod

Friend list loads very slow and breaks on single error

Opened this issue · 0 comments

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)