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
saved by
related reading
- Preload critical assets to improve loading speed | Articles | web.devweb.dev
- JavaScript Loading Priorities in Chromeaddyosmani.com
- Lazy loading - Performance | MDNdeveloper.mozilla.org
- How's Linear so fast? A technical breakdownperformance.dev
- File-system conventions: loading.js | Next.jsnextjs.org
- App Router: Streaming | Next.jsnextjs.org
- The Origin of the IMG Tag - The History of the Webthehistoryoftheweb.com
- workbox-precaching | Modules | Chrome for Developersdeveloper.chrome.com
- Tempo | Prompt. Develop. Design. Collaborate.tempolabs.ai
- Guillaume Técherguillaumetech.github.io
- Getting Started: Fetching Data | Next.jsnextjs.org
- Populating the page: how browsers work - Performance | MDNdeveloper.mozilla.org