Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Docs: clarify preference to using imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Jun 10, 2014
1 parent a9b5d3a commit 0d123b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core-shared-lib.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
Some libraries require a specific global function be defined. If this is the case, specify the `callbackName` property.
Whenever possible, use **import** (`<link rel="import" href="...">`) instead.
Where possible, you should use an HTML Import to load library dependencies. Rather than using this element,
create an import (`<link rel="import" href="lib.html">`) that wraps loading the .js file:
lib.html:
<script src="lib.js"></script>
@group Polymer Core Elements
@element core-shared-lib
Expand Down

0 comments on commit 0d123b1

Please sign in to comment.