Global Polymer settings

Document-level global Polymer settings can be set
by creating a Polymer object on window before importing the Polymer
library, or by calling a setter.

You should call the setters before defining your first Polymer element. For example,
you could do this from an entrypoint file, or from your main application element import
(assuming that you have an main application element that's always loaded first.)

<html><head><metacharset="utf-8"><scriptsrc="components/webcomponentsjs/webcomponents-loader.js"></script><script>/* this script must run before Polymer is imported */window.Polymer = {
rootPath: '/your/application/root'
};
</script><!-- a component that relies on Polymer --><linkrel="import"href="elements/my-app.html"></head><body>
...

Available settings:

Setting / Setter

Description

setPassiveTouchGestures

When true, Polymer gestures event listeners are all added as passive listeners,
and can't call preventDefault to prevent the native browser handling. May improve scroll performance. Defaults to false.

This setting can't be set from the Polymer object—the application
must use the setter before any gesture event listeners are added.