Closed taijuten closed 3 years ago
Is anyone able to review this PR? It would be great to have native lazyloading working as intended with this library
Hey @taijuten , your PR hasn't gone unnoticed, we are however in the process of taking a closer at this area, to make it a better fit for our future plans.
We appreciate the importance of this feature to you, and your patience.
@taijuten Please see the comment of your original issue - at this point we will not add new functionality to the this project.
Currently the Native Lazyloading detection is broken (at least on 84.0.4147.125).
When running previous implementation of
It results in
false
. This is at least in part due totypeof HTMLImageElement
resulting in"function"
.I have copied the implementation from the polyfill for loading attribute, here: https://github.com/mfranzke/loading-attribute-polyfill/blob/master/loading-attribute-polyfill.js