Skip to content

Commit

Permalink
prefetch paws
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed May 3, 2024
1 parent 96f34f8 commit d926be5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
rel="stylesheet"
/>

<!-- preload paws animation -->
<link rel="prefetch" href="/animations/paws1.001.png" as="image" />
<link rel="prefetch" href="/animations/paws1.002.png" as="image" />

<!-- Analytics -->
<script
data-goatcounter="https://biscuits.goatcounter.com/count"
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/paws/Paws.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface PawsProps {}

export function Paws({}: PawsProps) {
return (
<div className="absolute right-0 top-0 w-full max-w-[1600px] aspect-ratio-16/9 overflow-hidden">
<div className="absolute right-0 top-0 w-full max-w-[900px] aspect-ratio-16/9 overflow-hidden">
<div className="absolute left-0 top-0 w-full h-full drift" aria-hidden>
<img
src="/animations/paws1.001.png"
Expand Down

0 comments on commit d926be5

Please sign in to comment.