Tips for Query-Heavy pages?

I have a few pages on a site with a bunch of various queries costing a decent amount of time to load. I’ve turned on all the optimization settings for them I could find like caching them and also disabling the query features I don’t need but I was wondering if there was anything else I could do?

I was hoping I’d actually be able to somehow load the parts of these pages additively? I haven’t seen anything like that in Bricks so far, is that a thing somewhere?

Why not asking claude? Give it a try.

Berceuse I value human input.

There is no one size fits all answer for this. If you don’t want to write any custom queries where you cache it yourself useing transients but rather want to stay inside the builder i’d suggest you use pagination or a load-more button for those queries.

If you feel comfortable useing PHP than look up these Filters, to create your own Queries, that will then show up in your Query-Controls.

  • bricks/setup/control_options
  • bricks/query/run
  • bricks/query/loop_object
  • bricks/query/loop_object_id
  • bricks/query/loop_object_type

You can implement your own caching logic then, but custom Queries are not compatible with bricks Filter Elements.

Best Regards
Suat

One thing that helped me on a similar page: before tuning Bricks itself, install Query Monitor and check which loops are actually slow. Often it’s one meta_query or tax_query doing a LIKE/OR on postmeta, and that single loop is most of the load time.

On the additive loading idea, the closest built-in option is the Infinite scroll / Load more setting on the query loop, so only the first batch renders on page load. For sections further down the page you can also set the query’s posts per page low and let the rest come in via AJAX pagination.

If the slow part is a section that rarely changes (e.g. related posts or category counts), caching that output in a transient for a few minutes makes a big difference, as Suat mentioned.