✳flâneur — a map of the web's best reading
Your options for preloading images with JavaScript | Alex MacArthur
macarthur.me · 2,688 words · saved by 1 readers
There are a number of ways to preload an image on demand with JavaScript — each with their own strengths & drawbacks. Let's explore them.
Your options for preloading images with JavaScript | Alex MacArthur Photo by Nick Abrams / Unsplash "> Back to All Posts Your options for preloading images with JavaScript There are a number of ways to preload an image on demand with JavaScript — each with their own strengths & drawbacks. Let's explore them. Alex MacArthur / Mar 30, 2026 I just learned that the task of preloading images with JavaScript is surprisingly quirky. There are actually several ways to do it, and the best one to choose can very much depend on the circumstances. Let's explore them through the lens of what I was trying t
Explore this link on the map →saved by
related reading
- Preload critical assets to improve loading speed | Articles | web.devweb.dev
- Lazy loading - Performance | MDNdeveloper.mozilla.org
- How's Linear so fast? A technical breakdownperformance.dev
- File-system conventions: loading.js | Next.jsnextjs.org
- The Origin of the IMG Tag - The History of the Webthehistoryoftheweb.com
- App Router: Streaming | Next.jsnextjs.org
- Tempo | Prompt. Develop. Design. Collaborate.tempolabs.ai
- Getting Started: Fetching Data | Next.jsnextjs.org
- Populating the page: how browsers work - Performance | MDNdeveloper.mozilla.org
- Getting Started: Fetching Data | Next.jsnextjs.org
- Five Data-Loading Patterns To Boost Web Performance — Smashing Magazinesmashingmagazine.com
- The weirdly obscure art of Streamed HTML - DEV Communitydev.to