Skip to content

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

@angelo-v

Description

@angelo-v

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions