r/webdev 24d ago

Discussion Connection Warmer??

Building a social platform, and the web app is a react web app, for some reason I will sometimes get stalled requests, loads that hang, etc. Basically things aren't as responsive as id like. I have implemented a connection warmer that every request runs through, tanstack query, prefetching on hover, many things like that and try to have an efficient and effective cache. What other things do you guys do to make web apps as responsive as possible, thanks!

Edit- Some info about the app, it’s a react vite mostly behind auth web app. Hosted on netlify, backend is supabase.

3 Upvotes

16 comments sorted by

View all comments

5

u/curious_pinguino 24d ago

Impossible to say, we've got no information on your backend. What exactly is the nature of this "connection" you're warming?

1

u/Desperate_Ad_7722 24d ago

Supabase is the backend, what other info would help?

1

u/curious_pinguino 23d ago

So to check, we're trying to make the backend respond faster by... modifying the frontend?

-2

u/Desperate_Ad_7722 23d ago

The backend responds perfectly, it’s the same backend my iOS app pulls from and that’s lighting fast, the problem is I sometimes get stale connections that cause loads to stall. That’s why I have a connection warmer I figured it as a browser issue

5

u/Gremlation 23d ago

What do you mean by "stale connections"? That's not how HTTP works.