Prefetch links on hover

This commit is contained in:
2020-02-29 10:50:00 +01:00
parent 1c4be6c9d1
commit 62611a5559
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
<li>
<ul>
<li>
<LinkTranslate href="/credits" text="Credits" />
<LinkTranslate href="/credits" text="Credits" rel="prefetch" />
</li>
<li class="instagram">
<LinkTranslate href="https://instagram.com/{$site.instagram}" text="Instagram" target="_blank">

View File

@@ -4,7 +4,7 @@
</script>
<div class="location" data-aos="location">
<a href="/location/{location.country.slug}/{location.slug}">
<a href="/location/{location.country.slug}/{location.slug}" rel="prefetch">
<img src={location.country.flag.full_url} alt="Flag of {location.country.name}">
<div class="anim-mask mask-city">
<h3 class="location__city">{location.name}</h3>