mlisook / plastic-image

A Polymer 3.0 element which adds extra plasticity to <iron-image> with support for srcset and lazy loading
MIT License
30 stars 6 forks source link

Performance - no need to destroy intersection observer #21

Closed mlisook closed 7 years ago

mlisook commented 7 years ago

The element destroys (its reference to) the intersection observer when its count of observed elements goes to zero. There is no need to do this and is a waste in PWA or any SPA. The behavior also contributes to an issue in Firefox where observation of some elements can be lost (polyfill).

mlisook commented 7 years ago

Update forthcoming.

mlisook commented 7 years ago

Closed by PR #24