Skip to content
曾亮懿 ZengLiangYi Blog
Tag

#Frontend

6 posts tagged "Frontend".

Astro Cloudflare Workers: Precompile WebP & Avoid 404s

Replace slow /_image Worker transforms in @astrojs/cloudflare with imageService: compile, transcode WebP via Sharp, and fix og:image 404s with getImage().

曾亮懿 Leon Zeng
5 min read
#Astro #Performance #Frontend #SEO

Tailwind CSS v4 with Vite: Class Scanning & Theme Tokens

Integrate Tailwind CSS v4 in React and Vite with @tailwindcss/vite: separate build-time static utility class scanning from runtime CSS theme variables.

曾亮懿 Leon Zeng
3 min read
#ChatCrystal #Tailwind CSS #Frontend

Streaming A/V Sync: AudioContext Suspend and Resume Gating

Freeze and release the AudioContext timeline as streamed frames arrive, so frame availability drives playback while audio and video remain synchronized.

曾亮懿 Leon Zeng
4 min read
#TypeScript #Frontend #Performance

Stable React Subscriptions: useRef Proxy vs useEffectEvent

Prevent WebSocket, EventEmitter, and DOM listeners from resubscribing on every callback change, using a ref proxy or React 19.2 useEffectEvent.

曾亮懿 Leon Zeng
4 min read
#React #Frontend

From writing to code

Explore ChatCrystal, KeelDesk, n8n workflows and daily learning notes on my GitHub. Questions about the implementation are welcome.