imported-template icon indicating copy to clipboard operation
imported-template copied to clipboard

Cache imported templates

Open tomalec opened this issue 10 years ago • 1 comments

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.

tomalec avatar Feb 18 '15 11:02 tomalec

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.

warpech avatar Apr 18 '18 06:04 warpech