# o2team/wxapp-img-loader

适用于微信小程序的图片预加载组件

Repository: https://github.com/o2team/wxapp-img-loader
Canonical: https://ross.abutalabs.com/products/wxapp-img-loader
Language: JavaScript
License Family: other
Topics: wxapp, wechat-app, wechat
Last push: 2020-07-27T23:29:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3527, "days_push": 2228, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1100, forks 227 (observed 2026-08-28T04:03:35.449303+00:00)

## What it is
A native image preloading component for WeChat Mini Programs, provided as a copy-in WXML/JS module with a Taro branch variant. It exposes an ImgLoader class that loads images and reports src, width, and height via callbacks.

## Use cases
- preload images in a wechat mini program
- get image dimensions after loading in wxapp
- load multiple images with progress callbacks in mini program
- avoid image pop-in when rendering lists in wechat app
- preload images in a taro project

## When to choose
- you are building a native WeChat Mini Program or Taro app and need image preloading with size info
- you want a lightweight, dependency-free component proven in production apps like JD Shopping

## When to avoid
- you are not targeting WeChat Mini Programs or Taro
- you need advanced image processing such as resizing or caching beyond preloading
- you require an actively maintained project with a license file

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, ui-components
- domain: messaging-platforms, frontend, web-development
- platform: -
- tags: wechat-miniprogram, image-preloading, wxml-template, taro-support, wechat, javascript

## Member repositories
- o2team/wxapp-img-loader (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.449303+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:48.826864+00:00, confidence not recorded.
  - readme: https://github.com/o2team/wxapp-img-loader (fetched 2026-08-28T04:03:35.449303+00:00, sha e8ebabec4024)
- Data as of 2026-08-30T08:39:29.467469+00:00.
