MCPcopy
hub / github.com/ampproject/amphtml / isLayoutPending

Method isLayoutPending

src/service/resource.js:945–950  ·  view source on GitHub ↗

* Returns true if the resource layout has not completed or failed. * @return {boolean}

()

Source from the content-addressed store, hash-verified

943 * @return {boolean}
944 */
945 isLayoutPending() {
946 return (
947 this.state_ != ResourceState_Enum.LAYOUT_COMPLETE &&
948 this.state_ != ResourceState_Enum.LAYOUT_FAILED
949 );
950 }
951
952 /**
953 * Returns a promise that is resolved when this resource is laid out

Callers 3

whenWithinViewportMethod · 0.95
doPass_Method · 0.80
whenWithinViewportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected