elasticsuite icon indicating copy to clipboard operation
elasticsuite copied to clipboard

Render filters without knockout js

Open alinalexandru opened this issue 4 years ago • 1 comments

Google has announced that it will take into consideration CLS (https://web.dev/cls/) when is calculating the rating. As the filters are rendered with Knockoutjs, the filter area is changing. This affects the CLS score.

It's there a reason why the rendering was preferred to be done in javascript?

alinalexandru avatar Feb 18 '21 09:02 alinalexandru

The filters need to be rendered via JavaScript due to the caching system, specifically the FPC cache. If the filters where rendered server side then you'd have to had different cache configurations for each possible filter combination on the catalog, that would be like never having FPC cache at all.

PedroFaria99 avatar Jan 11 '22 12:01 PedroFaria99