Need help with creating a filter #17526
-
|
On this e-commerce site: A product ( I tried to hide products which have never been sold using the following filter.
However, the above filter significantly slows down my browser. Would you mind suggesting a better filter for this case, if any exist? Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Not using But then there are a lot of matching items on my side, so this will always require some work. |
Beta Was this translation helpful? Give feedback.
This should cause less overhead on browsers supporting native CSS
:has():Everything up to
:upwardis looked up using native CSS, and the final procedural:upwardapplies only to the 15 or so elements matching. I don't think it can be better than this, unless you accept to make the whole filter CSS native using: