Filter causes layout shift momentarily
-
Hello,
So overall the plugin works really well, is it quite complex in terms of possible options, customizations that you can do which is cool. However I’m facing an issue with layout shift, visit the url I provided take a look at the left sidebar you’ll find “Brand” filter there and then once you see it try to refresh the page again, you will experience momentarily the layout shift that “Brand” filter causes, at first you see shortly you should see that brand filter is expanded and it shows all “Brands” almost for a second, and then after that it collapses and it shows 10 brands.
I’d like to know if there is any way to fix this so that it doesn’t occupy more height for that short amount of time, so while loading it should stay the same displaying 10 brands at all times.
Maybe there’s some kind of JavaScript that when the page loads it collapses that Brand list down to 10 items, maybe it is possible to change that somehow, so it’s properly collapsed down to ten brands. A couple of site visitors informed me about this layout shifting issue which they said experienced for a longer time, when using cellphone it’s even more noticable since it takes a little longer to load the website and of course the device height is much smaller in that case.
I would be endlessly grateful for any help.
- This topic was modified 3 years, 6 months ago by .
- This topic was modified 3 years, 6 months ago by .
- This topic was modified 3 years, 6 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Filter causes layout shift momentarily’ is closed to new replies.