refresh-images
Reload all image tags that have a certain src/url
Last updated 5 years ago by ashaffer88 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install refresh-images 
SYNC missed versions from official npm registry.

refresh-images

Refresh img tags that match a certain src/url. Useful in conjunction with invalidate to update a changed image without a page reload.

Installation

npm install refresh-images --save

Usage

var invalidate = require('invalidate')
var refreshImages = require('refresh-images')

function avatarChanged (url) {
  invalidate(url, function (err) {
    if (err) throw err
    refreshImages(url)
  })
}

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |