You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"lazy registration": (enabled via lazyRegister: true in Polymer settings) that will cause most of the expensive registration work we do during the Polymer({...}) call to be deferred until the first instantiation of that type.
This is an opt-in feature for now, but as we get more feedback, we will consider making it the default.
Meaningful changes
Properties starting with an uppercase, like FPS, will no longer reflect to attributes.
Prior to v1.3.0, any property like FPS would reflect incorrectly to attribute fps. With v1.3.0, FPS would serialize to -f-p-s, which is not a valid attribute name to set with setAttribute, causing some bindings to throw exceptions. With this change, starting-uppercase properties will not reflect, and will warn to the console that they do not reflect.
Raw Notes
Fast check in createdCallback to see if registration has finished. (commit)
even more lazy: defer template lookup and style collection until finish register time. (commit)
turn on lazy registration via Polymer.Settings.lazyRegister * ensure registration finished by calling Element.prototype.ensureRegisterFinished() (commit)
Change forceRegister to eagerRegister and add Polymer.Settings.eagerRegister flag. (commit)
Add forceRegister flag to force an element to fully register when Polymer is called. Normally, some work is deferred until the first element instance is created. (commit)
Lazy register features we can be deferred until first instance. This is an optimization which can speed up page load time when elements are registered but not needed at time of first paint/interaction (commit)