1
2<!---
3
4This README is automatically generated from the comments in these files:
5iron-jsonp-library.html
6
7Edit those files, and our readme bot will duplicate them over here!
8Edit this file, and the bot will squash your changes :)
9
10The bot does some handling of markdown. Please file a bug if it does the wrong
11thing! https://github.com/PolymerLabs/tedium/issues
12
13-->
14
15[![Build status](https://travis-ci.org/PolymerElements/iron-jsonp-library.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-jsonp-library)
16
17_[Demo and API docs](https://elements.polymer-project.org/elements/iron-jsonp-library)_
18
19
20## &lt;iron-jsonp-library&gt;
21
22Loads specified jsonp library.
23
24Example:
25
26```html
27<iron-jsonp-library
28  library-url="https://apis.google.com/js/plusone.js?onload=%%callback%%"
29  notify-event="api-load"
30  library-loaded="{{loaded}}"></iron-jsonp-library>
31```
32
33Will emit 'api-load' event when loaded, and set 'loaded' to true
34
35Implemented by  Polymer.IronJsonpLibraryBehavior. Use it
36to create specific library loader elements.
37
38
39
40## Polymer.IronJsonpLibraryBehavior
41
42`Polymer.IronJsonpLibraryBehavior` loads a jsonp library.
43Multiple components can request same library, only one copy will load.
44
45Some libraries require a specific global function be defined.
46If this is the case, specify the `callbackName` property.
47
48You should use an HTML Import to load library dependencies
49when possible instead of using this element.
50
51
52