Skip Navigation

[Resolved] Loading time too long, reduce items in search

This thread is resolved. Here is a description of the problem and solution.

Problem:

How can I maximize the items per page, how do I get a pagination within the startpage, so not everybody has to wait for all the items.

Solution:

There is built-in pagination feature within Views plugin, in your case, you can also enable the AJAX pagination settings, see screenshot:
https://cdn.toolset.com/wp-content/uploads/2012/07/pagination-options-3.png?x56814

This should be able to reduce the requests

Relevant Documentation:

https://toolset.com/documentation/beyond-the-basics/paginate-lists-of-content/

https://toolset.com/documentation/user-guides/views-pagination/

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.66 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1148504

Tell us what you are trying to do?

Hi, how I was guessing in the very beginning is now a reality. If you go to hidden link you have to wait until 40 seconds until the page is loaded! The biggest problem is that the page delivers 229 request and 4447 DOM knots, most of it are the 215 pictures of the 215 skis that are shown.

To reduce the loading time the most simpe way would be to show a maximum of 12-20 skis.
How can I limit the items shown of the custom search page. Right at the moment all items are shown!

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1149021

Hi,

I have tried the URL you mentioned above, there isn't similar problem as you mentioned above:
you have to wait until 40 seconds until the page is loaded

The HTML codes loads in 3 seconds, see screenshot: load-time2.JPG

And there is a document about "How to Use Views Custom Search on Large Sites"
https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

For your reference.

#1149225

Hi

Thank you for your good will.
The loading time was just an explanation to get a solution.
My question actually was how can I maximize the items per page, how do I get a pagination within the startpage, so not everybody has to wait for all the items. As I sad Google complains about to many DOM knots, etc.
I want to limit the items to be shown and also the result of the search must have a page of maxium 20 items and then the other results appear on different pages. How can I fix that?

#1149679

There is built-in pagination feature within Views plugin, see our document:
https://toolset.com/documentation/beyond-the-basics/paginate-lists-of-content/
https://toolset.com/documentation/user-guides/views-pagination/

In your case, you can also enable the AJAX pagination settings, see screenshot:
hidden link

This should be able to reduce the requests

#1149766
Toolset-Pagination-no-pages.jpg

Thank you very much that worked, but the next problems seems to appear: There are no pages to appear!
I choose now 32 items of the 215 items, that causes now 8 lines, but the visitor cannot change the pages!

#1149771

Please check these:
1) You are following our document to setup the pagination links:
https://toolset.com/documentation/beyond-the-basics/paginate-lists-of-content/#pagination-controls

2) If the problem still persists, you can provide a test site with the same problem, also point out the problem page URL and view URL, I can setup a demo for you

#1150176

You are welcome

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.