PR for flag operation with builds: https://github.com/Polymer/platform-dev/pull/3
On Mon, Jan 27, 2014 at 1:00 PM, Steve Orvell <[email protected]> wrote: > Currently the flags are settable only when using a debug version of > platform, i.e. loading from the platform-dev component. > > The easiest way to toggle these settings is via url query string: > > ?shadow: use the ShadowDOM polyfill even when native ShadowDOM is > supported; note this also uses the CustomElements polyfill. > ?register: use the Custom Elements polyfill even when native Custom > Elements is supported. > > You can check what's enabled this way: > > if window.ShadowDOMPolyfill is defined, the ShadowDOM polyfill is in use. > if CustomElements.useNative is true, the native version of CustomElements > is in use. > if HTMLImports.useNative is true, the native version of HTMLImports is in > use. > > I've asked @dfreedm to improve this a bit such that these flags can be > used with the non-debug version of platform.js. > > > On Fri, Jan 24, 2014 at 12:02 AM, Dominic Cooney <[email protected]>wrote: > >> Hi Polymerase, >> >> How do I flip into a particular configuration of polyfills or native >> implementations? >> >> I want to do this to measure the relative performance (time, memory, >> etc.) of using polyfills, because some Chromium contributors expressed >> interest in quantifying that. >> >> In the past I've tickled Polymer to use a particular native feature or >> not with querystrings like ?register. However the platform has outgrown the >> documentation<http://www.polymer-project.org/runtime-config.html#configuration-switches> >> (for >> example, we have Imports now.) I'm *mostly* interested in "all polyfill" or >> "as native as possible" but would find it useful to be able to >> mix-and-match these. (Which configurations are expected to work?) >> >> Thanks, >> >> Dominic >> >> 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/CAHnmYQ9cn%2BbF-njPXgwR-PY75ACaeH7v1J9BKPrm%2BTL5SSz6mQ%40mail.gmail.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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/CA%2BrMWZhxqj8RkLUWZ1SY9WTh96OwbDvuLuT-T9m-L2%3DvrNid9g%40mail.gmail.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAAUAVAj60LWcuZbWEy7KB33nZv4zT_0U%3DPsC4J3Vsdioy2HFtw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
