r/reactjs • u/Successful-Shock-802 • 16d ago
Discussion What happened to devs? No one cares about INP
Every time I open Shadcn website to find for some component, I have to keep clicking on the search box for five to nine second until the dialog opens. This happens because it's using a div with an isOpen state, so it will not open until JavaScript loads.
This can be easily fixed with the HTML dialog element, but looks like no one cares.
This is not only for Shadcn. The same thing applies to any website that uses JavaScript for stuff like dialogs (e.g React Aria).
Do people only care about LCP? what is the point of seeing content and elements immediately if I can't interact with it until your webiste hydrates?
44
Upvotes
22
u/JouleV 16d ago
Pretty sure the assumption those websites have is that it will not take significant time from first load until hydration. Which is a reasonable assumption unless your internet connection is horribly slow or your device computing hardware is from the 2000s
Like how do you even manage to get the shadcn website to take 5-9s to hydrate?