1
0
Fork 0

feat: add priority tag to enable image preloading

This commit is contained in:
Vojtěch Mareš 2023-01-12 10:51:55 +01:00
parent ffcf84fadd
commit 34494444fe
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 3 additions and 1 deletions

View file

@ -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>
</> </>

View file

@ -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}