feat(video): lazy-load version comments and add ETag-based comment caching

This commit is contained in:
Yusuf İpek
2026-02-24 16:34:16 +03:00
parent a9041ebca5
commit ffa55d7dcc
7 changed files with 173 additions and 74 deletions
@@ -158,7 +158,7 @@ export default function CompareVersionsPage() {
useEffect(() => {
async function fetchVideo() {
try {
const res = await fetch(`/api/projects/${projectId}/videos/${videoId}`);
const res = await fetch(`/api/projects/${projectId}/videos/${videoId}?includeComments=false`);
if (!res.ok) {
setError('Failed to load video');
setLoading(false);