[Fixed]-What happens if I don't have pagination?just keep for looping the post…why need pagination, for footer?

1👍

First off, with djangos generic views (ListView), pagination is literally one line to implement in a view and then the code for the template is given to you in the documentation (the bootstrap docs also have pagination example code snippets).

Your current loop is essentially the same as

for i in range(n):
    print i

As n increases, the more information will be printed to the screen and that leads to too much information for one person to take in. Even if they could take it all in, the majority of it they won’t care about and only need the first couple results.

Therefore, without pagination, you’d have just made your user wait additional time for your server to generate the content, and for their browser to display that content (even longer with images/media).

Humans don’t like waiting, don’t make them when they don’t need to.

👤Sayse

0👍

Every post you add will have a certain weight, especially if it also has images or other media. Your users will have to load everything you have on the load of your page. This will make your page slow to load.

Slow loading pages have poorer performance because people give up on loading.

When the loading happens bit by bit as requested by the user it won’t have such impact.

0👍

While @Haroen Viaene is correct, that is only one side of the matter. Also a big collection of posts would be very hard to navigate through if a user wants to find a certain old post he’s read already for example. Also another way to go (without “load more” or pagination) is to use a search box and/or categories to separate your posts in.

Leave a comment