Website lags
Unanswered
Hackberry nipple gall parasitoid posted this in #help-forum
Hackberry nipple gall parasitoidOP
Hello, What could be the reason why our website https://hadramawt-one.vercel.app/en lags a lot. When we scroll down and then up the content disappears for few second and then appears. Our website content is dynamic and we fetch it from the db.
29 Replies
also, you're getting some warning
check those
your code is written badly 🤷♂️
not really a next.js issue
@averydelusionalperson you haven't implemented it correctly?
Hackberry nipple gall parasitoidOP
Actually, we have implemented google translate and I think after that the lagging started
either way, it isn't really next.js issue, you haven't implemented it correctly. also check what those warning logs are
maybe it's related
@averydelusionalperson either way, it isn't really next.js issue, you haven't implemented it correctly. also check what those warning logs are
Hackberry nipple gall parasitoidOP
if possible can I DM you?
Nah, you can ask questions here, there are better helpers here than me
@averydelusionalperson either way, it isn't really next.js issue, you haven't implemented it correctly. also check what those warning logs are
Hackberry nipple gall parasitoidOP
it was implemented by my friend and he said error are from google translate script and hence those errors can't be removed
hmm, IC, even tho, I don't really think this issue is from google translate, the footer hasn't been implemented correcly
Hackberry nipple gall parasitoidOP
oh, noice
@averydelusionalperson oh, noice
Hackberry nipple gall parasitoidOP
If I use different browser such as firefox it works fine
@averydelusionalperson checkout this comment
Hackberry nipple gall parasitoidOP
Okay
Nile Crocodile
There are better way to translate your site. Not sure how tough, never done it but I've seen some examples of how to do it. You should store all text in some json file or JS object, and translate it manually. Make separate objects for each language and then go through the one that contains language that user wants.
@Nile Crocodile There are better way to translate your site. Not sure how tough, never done it but I've seen some examples of how to do it. You should store all text in some json file or JS object, and translate it manually. Make separate objects for each language and then go through the one that contains language that user wants.
Hackberry nipple gall parasitoidOP
Implemented both manual and auto translation
Nile Crocodile
why would you do that?
@Nile Crocodile why would you do that?
Hackberry nipple gall parasitoidOP
That was requirement for the project
I advised them the manual but they said content will be dynamic as well
so needed auto as well
Nile Crocodile
oh well that sucks
not sure what I'd do in that situation
@Nile Crocodile not sure what I'd do in that situation
Hackberry nipple gall parasitoidOP
I created new nextjs project and pasted the files https://new-hadramawt.vercel.app/en
Till now it works cool
like I don't feel lag