Filter collections list before pagination

8 0 4



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:

Replies 0 (0)