diff --git a/frontend/src/components/gallery/GallerySkeleton.tsx b/frontend/src/components/gallery/GallerySkeleton.tsx index 4f2046d4..defe4db9 100644 --- a/frontend/src/components/gallery/GallerySkeleton.tsx +++ b/frontend/src/components/gallery/GallerySkeleton.tsx @@ -1,31 +1,41 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import { Skeleton, SkeletonGalleryGrid } from '../common'; /** * Loading placeholder shown while a gallery is resolving (slug → info → - * auto-login → photos). Used by GalleryPage during the pre-photos phases and - * by GalleryView while the photos query runs, so the visitor sees one - * continuous skeleton instead of multiple full-page interstitials (#321). + * auto-login → photos). The tile grid is delayed 300ms so fast loads + * never flash an empty grid before the real photos render (#321 follow-up). */ -export const GallerySkeleton: React.FC = () => ( -