Agent
knowledge-base
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
Apply `content-visibility: auto` to defer off-screen rendering.
$ npx -y skills add calcom/cal.diy --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Apply `content-visibility: auto` to defer off-screen rendering.
title: CSS content-visibility for Long Lists impact: HIGH impactDescription: faster initial render tags: rendering, css, content-visibility, long-lists
Apply `content-visibility: auto` to defer off-screen rendering.
**CSS:**
.message-item {
content-visibility: auto;
contain-intrinsic-size: 0 80px;
}**Example:**
function MessageList({ messages }: { messages: Message[] }) {
return (
<div className="overflow-y-auto h-screen">
{messages.map(msg => (
<div key={msg.id} className="message-item">
<Avatar user={msg.author} />
<div>{msg.content}</div>
</div>
))}
</div>
)
}For 1000 messages, browser skips layout/paint for ~990 off-screen items (10× faster initial render).
Repo: calcom/cal.com
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
The `packages/features` package should contain only framework-agnostic code: - Repositories…