Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/edcd77c6-013a-4e98-bb36-1ea19ba3affa%40googlegroups.com.
It looks like dynamic HTML imports are now supported in both Canary (natively) and the polyfill.From experimentation, it appears that <link> tags programmatically added to the page's light DOM load as expected. However, links added to a shadow subtree are not handled and have no effect.Can someone please confirm if that analysis is correct?I tried looking through the spec, which talks about links being associated with the document, but it doesn't specifically say that links in shadow DOM are ignored, so I wanted to check. I ask because I have a component that wants to dynamically load another, and it appears to be able to do so in its light DOM but not its shadow. This to some extent cracks the opacity of the component's internal workings, so I'd been hoping to keep the dynamic links completely within the component's shadow.
On Friday, February 7, 2014 8:48:35 AM UTC-8, Eric Bidelman wrote:Dynamic imports are now supported, but we haven't done a release yet that includes it.+steve and +scott have a few demos they might be able to share. Both show dynamic/async imports.
On Fri, Feb 7, 2014 at 4:29 AM, Matt Bourne <matt...@gmail.com> wrote:
Hi EricIt seems there is a similar question on stack exchangeI wonder if one of the devs could given an updated answer.I understand that we can instantiate our custom elements just like normal elements at any time. The question is more around loading the html import for the element with all its css and js includes for example using ajax then when it's loaded add the polymer element.Obviously in a heavy single page web app design I only want to load the slideshow element (for example) if it's actually needed. In my use case I want users to be able to choose between many quite rich elements (flipbook, map, gallery, slideshow) I only want to load those elements if they are used.MattFollow Polymer on Google+: plus.google.com/107187849809354688692To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
---
You received this message because you are subscribed to the Google Groups "Polymer" group.To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/edcd77c6-013a-4e98-bb36-1ea19ba3affa%40googlegroups.com.Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/ce563e1c-e264-4df0-8515-28c7ab122b48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.