eelpa
eelpa

Reputation: 57

Page freezes on Mobile

I'm testing on a webpage which displays a list of products, with photos, names, prices, etc. It works fine when I views it on my PC. When I visits the same page on mobile phones (Android and iPhone), the page first loads all its contents, and then freezes for few seconds, and then works again. When it freezes, I tried to scroll the screen up and down and it does nothing, and then after few seconds, it responds with all these actions. Any guess on what causes the freeze? There is some JS runs when the page loads, but it works just fine on browsers on PC.

Upvotes: 0

Views: 509

Answers (2)

amandeepsingh
amandeepsingh

Reputation: 88

It depends on your code. If you are displaying high resolution images on the device, it will slow down the scrolling. Also if you are downloading any data on the main UI thread, it will also cause the freeze which you are experiencing.

Upvotes: 1

AboutTime
AboutTime

Reputation: 317

Sometimes on mobile if you're loading a lot of items or data at the same time it can take mobile phones a second to render all the new information. Perhaps loading less information could be a solution?

Upvotes: 0

Related Questions