-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Update] wait for Desktop and Mobile svg #227
Conversation
Is it possible to do this @GabeDiniz Just a thought |
Yea its possible! I think I know how to do this with width sizes. The breakpoint for the 2 svgs are: Mobile < 640px <= Desktop |
yeah people has done that, but it is not that great |
In the posts, it talks about the best practice of doing something like this. Best Practices
|
you can try use library like this? https://www.npmjs.com/package/react-device-detect |
I don't particularly like the idea of using libraries just because it seems better. In our case, since the landing page will likely only be used this year, and next year will be updated, using a library is good. However, the use of a library also adds a new dependency, which can also be tech debt that we don't directly own. For something like detecting if its mobile/desktop, it can be easy enough that we don't have to rely on a library. At the end of the day, people who make the libraries are human, and inaccuracy may still be present. |
Co-authored-by: Jc <[email protected]>
seems like it works :D @GabeDiniz |
β¨ Issue: #226
π Branch: fix/226/loading-animation-on-mobile
β What was changed?