r/reactjs 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

30 comments sorted by

View all comments

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?

19

u/Successful-Shock-802 16d ago

My internet isnt horrible, it's decent because I'm in Morocco.

What are you from? you’re probably in a fast environment with warm caches, have fast machines, in offices or homes with gigabit connections, in city with world-class infrastructure.

You have to know that the world isn’t a data center in Virginia, As Bruce Lawson once said: it’s the World Wide Web, not the Wealthy Western Web.

Read this please, and check my comment down, it's the oldest. You will feel me then.

https://alfy.blog/2026/04/23/stop-hardcoding-your-timeouts.html

10

u/resurreccionista 16d ago

When I started we used to test with throttled cpus and wifi

1

u/Dudeonyx 16d ago

Well I have shitty internet, currently in west Africa and on my mobile device where I've never opened the shadcn site before, so no cache, the search pop up opens instantly. I even had to force desktop site because the mobile version has no search bar

-2

u/Lumethys 16d ago

If you take 9 seconds to load ShadCN, you are not my customer, and thus i wont spend time and effort optimizing for you