Hi Eric

It seems there is a similar question on stack exchange 

http://stackoverflow.com/questions/21607663/dynamically-load-web-components-html-imports/21627702#21627702

I 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.

Matt

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/edcd77c6-013a-4e98-bb36-1ea19ba3affa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to