css containment can be a bit tricky but here's what worked for me: use
contain on parent elements to limit styles and layout impacts, plus
will-change hints where needed.
for self-contained islands:
- wrap them in their own div with contain set (like
div { overflow:hidden; will-change:border-box })
this keeps those areas isolated from the main flow
helps a lot ⭐