hackerkid / Mind-Expanding-Books

:books: Find your next book to read!
https://mindexpandingbooks.com
11.74k stars 1.11k forks source link

website: Implement infinite scroll #184

Closed hackerkid closed 4 years ago

hackerkid commented 5 years ago

Currently all the books are loaded when the homepage is loaded. Instead of this implement an infinite scroll that loads more books only when the user scrolls to the bottom of page.

See https://github.com/hackerkid/Mind-Expanding-Books/tree/master/app to setup development environment

SurajKhayamali commented 5 years ago

I am planning to load 4 books at a time considering current layout. And yeah, As the user scrolls down, More and more books will load.

hackerkid commented 5 years ago

@SurajKhayamali Thats reasonable. Go ahead.

SurajKhayamali commented 4 years ago

211 @hackerkid

Page loads significantly faster now :)

SurajKhayamali commented 4 years ago

Loading 12 books at a time to fix scrolling issue on devices with viewport larger than initial rendered documents

hackerkid commented 4 years ago

Closed in https://github.com/hackerkid/Mind-Expanding-Books/pull/211