-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix risk condition on loading indicator when layout completes before vsync. #1043
Conversation
@@ -1002,6 +1002,28 @@ describe('CustomElement Loading Indicator', () => { | |||
expect(toggle.firstCall.args[1]).to.equal(true); | |||
}); | |||
}); | |||
|
|||
it('should ignore loading on if layout completed before vsync', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's loading "on" :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -305,6 +305,9 @@ export function createAmpElementProto(win, name, implementationClass) { | |||
/** @private {boolean|undefined} */ | |||
this.loadingDisabled_; | |||
|
|||
/** @private {boolean|undefined} */ | |||
this.loadingState_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to to start with a boolean state? like false
by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be stripped out by a compiler.
LGTM. |
Fix risk condition on loading indicator when layout completes before vsync.
No description provided.