* Whether the resource is currently visible in the viewport. * @return {boolean}
()
| 968 | * @return {boolean} |
| 969 | */ |
| 970 | isInViewport() { |
| 971 | if (this.isInViewport_) { |
| 972 | this.resolveDeferredsWhenWithinViewports_(); |
| 973 | } |
| 974 | return this.isInViewport_; |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * Updates the inViewport state of the element. |
no test coverage detected