feat: add priority tag to enable image preloading
This commit is contained in:
parent
ffcf84fadd
commit
34494444fe
2 changed files with 3 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ export function Hero() {
|
||||||
alt={company.name}
|
alt={company.name}
|
||||||
width={128}
|
width={128}
|
||||||
height={64}
|
height={64}
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|
@ -91,7 +92,7 @@ export function Hero() {
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Image className="pt-10 md:pt-0" width={400} height={800} src={avatarVojtechMares} alt="Vojtěch Mareš" />
|
<Image className="pt-10 md:pt-0" priority width={400} height={800} src={avatarVojtechMares} alt="Vojtěch Mareš" />
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ export default function TrainingLayout({ content, meta }: Props) {
|
||||||
width="1500"
|
width="1500"
|
||||||
height="1500"
|
height="1500"
|
||||||
alt=""
|
alt=""
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<h2 className="ml-4 text-center font-display self-center text-4xl tracking-tight text-white sm:text-6xl">
|
<h2 className="ml-4 text-center font-display self-center text-4xl tracking-tight text-white sm:text-6xl">
|
||||||
Školení {meta.name}
|
Školení {meta.name}
|
||||||
|
|
|
||||||
Reference in a new issue