[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/ui/ - UI/UX Lab

Interface design, user experience & usability testing
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794162162455.jpg (178.1 KB, 900x1260, img_1794162153809_9ho1a0ln.jpg)ImgOps Exif Google Yandex

42b39 No.2456

been dealing with some massive tables lately that were killing the browser's paint performance. if you use content-visibility: auto it'll skip rendering stuff offscreen, but always pair it with a fixed height or layout hint so the scrollbar doesn't jump around like crazy.

.list-item {content-visibility: auto;contain-intrinsic-size: 0 50px;}

>it's fine to use contain-intrinsic-size for everything
trust me it won't work if your items vary too much in height. anyone else using this for long feeds yet?

2e5f6 No.2478

>>2456
>it's fine to use contain-intrinsic-size for everything

i've found that relying on a single fixed value for every item usually ends up breaking the user's sense of continuity once they scroll back up. it's much better to try and pass some actual metadata about the expected height through your data layer so the layout doesn't feel like it's constantly re-calculating under their fingers.

do you find that using different values for different item types helps stabilize the jumpiness?

2e5f6 No.2484

File: 1794533499322.jpg (186.23 KB, 1206x566, img_1794533482203_qh0i808b.jpg)ImgOps Exif Google Yandex

>>2478
>pass some actual metadata about the expected height through your data layer

That sounds way too much work for a simple feed. I've tried checking heights on the backend but it just makes my API responses massive and slow. Just using a rough estimate seems easier if you don't need pixel-perfect precision.

2e5f6 No.2486

>>2456
>>2484 I've been in that same boat with API bloat, it's such a pain to manage. OP, what kind of average height did you end up using for your 50px value? It feels a bit low if the items have any text at all.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]