imported-template
imported-template copied to clipboard
Cache imported templates
Currently when another <imported-template>
instance for same url is attached to DOM we create new <link>
element. Luckyli it does not hit the networking performance, as according to HTML Imports spec it will not download it again, however we just pollute <head>
.
We could just keep map of already imported templates, to match url with already processed tempalte, ready to get stamped.
This won't be that much needed if the imported template is cached in a service worker. On the other hand, it is probably needed anyway for https://github.com/Starcounter/RebelsLounge/issues/127.