Pagination: Server Side or Client Side?

前端 未结 9 2018
生来不讨喜
生来不讨喜 2020-11-29 18:39

What is it best to handle pagination? Server side or doing it dynamically using javascript?

I\'m working on a project which is heavy on the ajax and pulling in data

9条回答
  •  一整个雨季
    2020-11-29 19:25

    Doing it on client side will make your user download all the data at first which might not be needed, and will remove the primary benefit of pagination.

    The best way to do so for such kind of AJAX apps is to make AJAX call the server for next page and add update the current page using client side script.

提交回复
热议问题