Skip to content

Commit

Permalink
Imageコンポーネントのloadingをデフォルトでlazyに
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Mar 23, 2024
1 parent e8de96c commit 56b8a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/app/src/foundation/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ type Props = {
width: number | string;
} & JSX.IntrinsicElements['img'];

export const Image: React.FC<Props> = ({ height, loading = 'eager', objectFit, width, ...rest }) => {
export const Image: React.FC<Props> = ({ height, loading = 'lazy', objectFit, width, ...rest }) => {
return <_Image {...rest} $height={height} $objectFit={objectFit} $width={width} loading={loading} />;
};

0 comments on commit 56b8a9d

Please sign in to comment.