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

Is there a recommended approach to creating the glider structure optimized for core web vitals? #254

Open
prathamesh-gharat opened this issue Jun 19, 2023 · 1 comment

Comments

@prathamesh-gharat
Copy link

prathamesh-gharat commented Jun 19, 2023

For understanding, the view rendered before glider's javascript initializes and the view after glider's javascript initializes should be same. (no change in height, size of elements, etc).

Summarized question: Is there a way we can pre-generate the HTML structure that glider's JS generates? (If yes, then we can style the before and after init CSS easily)

@kevinfarrugia
Copy link
Contributor

There was a similar issue on the React version of this component. The solution I recommended there (and I believe the same applies here) is to use CSS to layout the HTML as it would appear on the after glider-js has initialized.

Reference: kevinfarrugia/react-glider#130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants