Filter collections list before pagination

Reliked
Tourist
8 0 4

Hi

 

We are using the collections list page as a "Shop by" page, where you can filter the collections list by Influencer, Brand & Size and then by Womens, Mens etc (these filters are stored as collection metafields).

 

At the moment it is done via javascript by adding a CSS class to show a collections list when the corresponding button is clicked. The problem with this is that the page is very slow as we have hundreds of collections being rendered multiple times on the page load but just being hidden by CSS. 

 

Is there a way to filter the collections to use within the paginate feature? So get the URL params in liquid, and then paginate the collections where the metafields match the 2 URL params provided?

 

Here is the page we are trying to speed up:

 

https://bt4zzfkdc9k73kma-24815934.shopifypreview.com/collections?filter=influencers&type=all

Replies 0 (0)