A little performance trick from Amazon
mardi 28 avril 2015 - un commentaire
Have you noticed that Amazon search results feel really really fast? I've noticed that they use a little trick to achieve that. They preload a few results from the next page (6 in my example). So when you click on "Next page", they can display those items immediately and start fetching the other results. On most screens, those preloaded items should be enough to fill the visible viewport. And hopefully, once the user has scanned the first items and is ready to scroll, the rest of the items are loaded.
I've zoomed out my browser to illustrate the effect in the video.
Commentaires
Yup. I believe several web apps to that. I think it's probably a better approach to "infinite scroll" in terms of benefits for the user, although very close technically.