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

Add skeleton drawing generator #56

Open
mistricky opened this issue Jan 15, 2021 · 0 comments
Open

Add skeleton drawing generator #56

mistricky opened this issue Jan 15, 2021 · 0 comments
Assignees
Labels
client enhancement New feature or request server

Comments

@mistricky
Copy link
Member

Motivation

For a better user experience, the better way to do that is when the user first reach the server will return a rendered skeleton view to them, if u wanna learn more, please move to this issue.

Also, the skeleton page is building by React or something like JSX framework, so I have to mix the skeleton code with the business code that makes them coupled to each other heavily, seems like It's not a good idea though a lot of projects do that. We need a fantastic solution!

Solution

We used the node server to request the rendered page of the current project, and use skeleton component instead of elements that like img, text or something like that after the page was rendered, then export the HTML as a page after rendered for the first screen render via innerHTML or something like that.

Now we have decoupled skeleton code and business code, and the skeleton code is generated automatically by node server, so we even don't have to write skeleton code over and over again for each page, we just need to write once and run anywhere!

@mistricky mistricky self-assigned this Jan 15, 2021
@mistricky mistricky added client enhancement New feature or request server labels Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client enhancement New feature or request server
Projects
None yet
Development

No branches or pull requests

1 participant