🖼 Load placeholder image on image error, Angular 5+
-
Updated
May 20, 2024 - TypeScript
🖼 Load placeholder image on image error, Angular 5+
Handle ALL images not found on your website automatically with ease!
Tiny dependency-free JavaScript that serves .jpg fallbacks of WebP/AVIF images to legacy browsers. Just a simple <img> tag, no <picture> needed.
Demonstrates and fixes the well-known SSR bug in React and Next.js where <img onError={...}> fails to trigger for broken image URLs. Includes working demos using Client Components and server-side HEAD checks for SEO-safe image fallback rendering.
Image helper is a simple package that allows you to assign a fallback image if the main one fails with option to add a global fallback image
Halo 2.x 插件:纪念日、生日(农历)、爱车保险年检到期提醒
Fallback for broken images (Service Workers)
To associate your repository with the image-fallback topic, visit your repo's landing page and select "manage topics."