Loading Skeleton とは?
loading skeleton は、実際のデータの読み込み中に、灰色のブロックやシマーする形状を使ってコンテンツのレイアウトを描き出す placeholder のレンダリングです。最終的なコンテンツが占めるのと同じスペースを占め、構造と進捗を伝えます。データが到着すると、skeleton は実際の UI に置き換えられます。
なぜ重要か
skeleton は体感の待ち時間を減らし、スペースを予約することで、コンテンツが現れたときの layout shift を避けるのに役立ちます。これは suspense boundary 内でよく使われる fallback です。
関連ガイド
What Is a Suspense Boundary?A suspense boundary wraps part of a UI so that while its data or code is loading, a fallback is shown, lettin…
What Is Cumulative Layout Shift?Cumulative layout shift measures how much visible content unexpectedly moves during load, scoring visual stab…
What Is an Error Retry Boundary?An error retry boundary catches a failed UI region and offers a retry action, letting the user re-run the ope…