In some scenarios, you may prefer not to load every item from your query source into the Advanced Grid Builder at once. Loading a large number of items from a WordPress website can negatively impact page performance and place an excessive load on your server. The Number of Posts settings allow you to control the number of items displayed per load and can limit the total number of items returned. You can then load additional pages based on your Load More settings.
Fields
Max Posts
This field allows you to define the maximum number of posts to return. This is useful if you want to restrict how many posts users can load with the Load More feature. For instance, if you have 1,000 posts available but set this value to 10, only the first 10 posts will be displayed, determined by your Sort Order. Learn more about WordPress pagination.
Page Size
Here, you can specify how many items to display per page. Keep the following factors in mind when determining this value:
Impact on Page Load Time: Large images may increase page load time, so choosing a smaller page size can enhance performance. For primarily text-based lists, larger page sizes might be appropriate. Learn more about optimising page load time.
Caching Considerations: Larger page sizes can be advantageous for cached pages. The first page of every Advanced Grid Builder will typically be cached (provided your site has caching enabled), which allows for quicker loading. However, subsequent pages will load via AJAX and may not be cached. Note that only the HTML for the page is cached; images will not be cached for first-time visitors. Learn more about caching and its benefits.
User Experience: Consider whether users are likely to scroll through all the content in the grid. If you enable AJAX Load More, users might miss important content that is positioned lower on the page if the grid continuously expands. Important information below the grid may remain unnoticed. Learn more about best practices for infinite scroll.