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

Prevent a flash of empty content on the library page #507

Open
andrew-codes opened this issue Aug 19, 2024 · 0 comments
Open

Prevent a flash of empty content on the library page #507

andrew-codes opened this issue Aug 19, 2024 · 0 comments
Labels
app:playnite-web Web app enhancement New feature or request

Comments

@andrew-codes
Copy link
Owner

andrew-codes commented Aug 19, 2024

My Library page loads with all game data already. However, it does not load with rendered games. This causes a longer delay from when the page loads and when the user can see the actual content (games) of the page. The current (technical) issue is that the games grid is virtualized. This means that only games within view are actually rendered. In order to accomplish this, the games grid must have a known height value when rendering. However, given the game grid fills the remainder of the page, we must know how tall that space is. On the client, after page load, we can compute this value, but on the server, in order to do SSR, we do not have a way to know how tall the area should be.

Ideally, the solution is to figure out how to work around this limitation and render the game grid via SSR. An alternative and acceptable solution is to load a skeleton UI to indicate the games are loading. Note that if the games are able to be loaded too fast, the skeleton UI may make it seem (perceived performance) to be slower. If this affect is too great and we cannot SSR due to technical reasons, then we may forfeit this feature.

@andrew-codes andrew-codes converted this from a draft issue Aug 19, 2024
@andrew-codes andrew-codes moved this from Backlog to Ready 📝 in Playnite-Web Aug 19, 2024
@andrew-codes andrew-codes changed the title SSR games in my library Prevent a flash of empty content on the library page Aug 19, 2024
@andrew-codes andrew-codes added enhancement New feature or request app:playnite-web Web app labels Aug 19, 2024
@andrew-codes andrew-codes moved this from Ready 📝 to Backlog in Playnite-Web Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:playnite-web Web app enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant