#Is there a way to make nuxtimg works on no-js browsers ?

1 messages · Page 1 of 1 (latest)

mint drum
#

Is there a built-in way for <NuxtImg> to provide no-JS fallbacks?

jagged cedarBOT
#

Hi @mint drum. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources you provided don’t mention any built‑in “no‑JavaScript” or <noscript> fallback behavior for <NuxtImg> in Nuxt Image, nor any specific configuration to make <NuxtImg> automatically degrade to a plain <img> when JS is disabled.

What is covered is:

  • Nuxt Image expects images either in public/ by default or in a configured image.dir (e.g. assets/img), and then you use <NuxtImg src="/my-image.jpg" />. [NuxtImg 404 fix]
  • There’s no mention of special handling for non‑JS browsers in that setup.

Because the sources don’t describe any no‑JS behavior or <noscript> integration for <NuxtImg>, I can’t confirm that such a feature exists.

So, based strictly on these documents:

  • I’m not aware (from the provided sources) of a built‑in way for <NuxtImg> to provide automatic no‑JS fallbacks.
  • The knowledge sources do not show any documented pattern for making <NuxtImg> work specifically in browsers with JavaScript disabled.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: