So the first fact section in this HTML import article states that html imports know better than to request (and execute - if javascript) resources multiple times.
This works within the framework of HTML imports but doesn't work for other type of imports (as in javascript). In this network view of the devtools you can see Polymer.html
being loaded first from javascript (d3.js
) then again from HTML imports (my-app.html
) which I wasn't expecting.
Is there a way to explicitly tell HTML imports that a resource has already been loaded (as in from javascript in this case)?