I've had issues on LCP score(12+s) and optimized the app, restructure most of it, actually, I've modified some code in frontend because I had 4 api calls, and move 3 of them to the Gadget backend. Now having just 1 api call in the frontend, which takes about 2+ seconds. It is made through Gadget backend. I already set up a redis DB to rely on cache but my LCP average is 8.8s in the last 2 weeks. Could someone have some suggestions about where I could find some additional clues? For sure it's a critical issue there.
And what I don't understand is why the api call it’s started at 20s+. Looks like I'm doing to much stuff in the backend?
I tried another way by moving that one api call in a loader (SSR) because I’m using Remix, but still the same values for LCP. Even with a white blank page. It seems that I'm missing something, something big, because the difference is big.