Skip to content

Commit

Permalink
Preconnet resources. Removed spinner.
Browse files Browse the repository at this point in the history
  • Loading branch information
marclupanc committed Aug 31, 2024
1 parent 68e374a commit 92e3575
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#e54757" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="preconnect" href="https://stats.g.doubleclick.net" />
<link rel="preconnect" href="https://td.doubleclick.net" />
<link rel="preconnect" href="https://firestore.googleapis.com" />
<link rel="preconnect" href="https://firebasestorage.googleapis.com" />
<link rel="preconnect" href="https://stats-api.up.railway.app" />
<link rel="preconnect" href="https://layer8proxy.net" />
<link
as="font"
rel="prefetch"
Expand Down
8 changes: 1 addition & 7 deletions src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@
loading="eager"
fetchpriority="high"
:src="monthPrompt?.image"
spinner-color="primary"
style="border: 3px solid #e54757; border-radius: 12px"
data-test="month-link"
@load="loaded = true"
:class="{ 'prompt-img': loaded }"
:srcset="`${monthPrompt?.image} 2x`"
sizes="(max-width: 560) 50vw, 100vw"
no-spinner
/>
</RouterLink>
<p class="q-my-md text-body1">
Expand Down Expand Up @@ -204,8 +200,6 @@ import { computed, onMounted, ref } from 'vue'
const errorStore = useErrorStore()
const promptStore = usePromptStore()
const loaded = ref(false)
const monthPrompt = computed(() => {
return promptStore.getMonthPrompt?.[0]
})
Expand Down

0 comments on commit 92e3575

Please sign in to comment.