How to do pagination in ajax call?

What's better: to load the page and then make ajax call to get inventory or load the page with the inventory?

  • Using an AJAX call is faster and better for user experience; loading inventory with the page is better for SEO, but may reduce the speed. Any ideas or preferences?

  • Answer:

    My personal choice: load the page with the inventory then enable ajax for loading more items and browsing the pages. I usually build the entire web application without using ajax and then enrich the user experience with ajax and javascript. This way my pages areĀ  usable by the widest possible choice of browsers and tools (not only search engines, think about screen readers or indexing tools and users without javascript). For the user load time problem i would preferably try caching at least the first page or parts of it.

Diego Trinciarelli at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.