jeluard / lucuma

Web Components library for ClojureScript
96 stars 8 forks source link

Embed polymer polyfill #23

Closed jeluard closed 10 years ago

jeluard commented 10 years ago

Check if it's feasible to embed polymer polyfill and apply it only when needed. This would remove an HTTP round-trip and the need for user to care about defining it and choosing the right version.

jeluard commented 10 years ago

Actually not a good idea as it forces usage of polymer even when it's not needed (e.g. target browsers support WebComponents).

A better idea would be to rely on a small script that would load polymer polyfill only when needed (there could be a special main js file embedding it to reduce roundtrips).