Skip to content

Add some sort of lazy-loading #222

Open
@Cyberes

Description

@Cyberes

Currently, when viewing a room the backend has to connect to the Matrix server and fetch everything. This seems to take 1 to 2 seconds under normal conditions and I expect the process could take longer if the Matrix server is under load. This makes the website feel very sluggish to the user.

I suggest having the client load a static page and wait for the backend server to finish fetching the room. Once it's complete the client can load the room.

Loading mockup

Potential solutions

View-Transitions API for multi-page apps

See #222 (comment)

Streaming server-side rendering

We're not using React but the streaming SSR ideas they have are interesting to inspire some solution for Hydrogen:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-archive-room-viewThe view to look at a room day by day in the archiveT-OtherQuestions, user support, anything else.Z-Confidence-MediumMedium confidence in the enhancement or suggestion based on known factors, or as described.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions