elasticsuite
elasticsuite copied to clipboard
Render filters without knockout js
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?
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.