包详细信息

script-onload

segmentio82.2k1.0.2

Call a function when a script loads.

自述文件

script-onload

Invoke fn(err) when the given <script> loads.

Installation

$ component install segmentio/script-onload

API

onload(el, fn)

License

(MIT)

更新日志

1.0.2 / 2015-15-05

  • Prep for npm publish

1.0.1 / 2014-10-16

  • tests: add error test
  • fix: listen on "onerror" too

1.0.0 / 2014-03-14

  • Initial commit