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
Allow amp-experiment to prerender and bypass maximum build limit #24745
Conversation
'This is a protected API. Please only override it the element is ' + | ||
'render blocking', | ||
whitelist: [ | ||
'src/service/resources-impl.js', |
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.
Signed... I need to make change to all four files to pass the isRenderBlocking()
method from a component to the resource manager...
src/base-element.js
Outdated
* built _and_ laid out will be prioritized. | ||
* @return {boolean} | ||
*/ | ||
isRenderBlocking() { |
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.
I'd rather this be specific to buildCallback
, with "build" somewhere in the name. Having this return true currently doesn't do anything for layoutCallback
.
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 confirm, you want me to change the name?
What about isBuildRenderBlocking()
?
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.
Yah, that's good.
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.
SG. Renamed.
As we agreed offline, this PR
<amp-experiment>
component to prerenderisBuildRenderBlocking()
method to bypass the 20 maximum build count