From 42281ca58e9b40dad0aa8463b0e7eba41ad99e6d Mon Sep 17 00:00:00 2001 From: tymur999 Date: Fri, 10 Apr 2026 18:15:48 -0500 Subject: [PATCH] general optimizations: date; preload textures --- src/articles/articles.ts | 2 +- src/index/Canvas.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/articles/articles.ts b/src/articles/articles.ts index 9c9d67d..c752ef3 100644 --- a/src/articles/articles.ts +++ b/src/articles/articles.ts @@ -18,7 +18,7 @@ export const ARTICLES: Article[] = [ name: "My high school experience", description: "My first program, winning two senior superlatives, and why (and how) I chose Georgia Tech", thumbnail: allBlack, - published: new Date(Date.parse("3/15/2026")), + published: new Date("3/15/2026"), article: lazy(() => import("./mdx/high-school.mdx")) } ] \ No newline at end of file diff --git a/src/index/Canvas.tsx b/src/index/Canvas.tsx index 15fd0db..ba1eb44 100644 --- a/src/index/Canvas.tsx +++ b/src/index/Canvas.tsx @@ -14,6 +14,8 @@ import {useRef} from "react"; import type {Mesh} from "three"; import * as THREE from "three"; +useTexture.preload([Jupiter, Makemake, Ceres, Haumea, MilkyWay, SaturnRings]); + export default function Canvas() { // fade animation sync with loading