Skip to content
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

Merged
merged 2 commits into from Sep 26, 2019

Conversation

zhouyx
Copy link
Contributor

@zhouyx zhouyx commented Sep 25, 2019

As we agreed offline, this PR

  1. Allow <amp-experiment> component to prerender
  2. Introduce restricted isBuildRenderBlocking() method to bypass the 20 maximum build count

'This is a protected API. Please only override it the element is ' +
'render blocking',
whitelist: [
'src/service/resources-impl.js',
Copy link
Contributor Author

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...

* built _and_ laid out will be prioritized.
* @return {boolean}
*/
isRenderBlocking() {
Copy link
Contributor

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.

Copy link
Contributor Author

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()?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yah, that's good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG. Renamed.

@zhouyx zhouyx merged commit e451f48 into ampproject:master Sep 26, 2019
@zhouyx zhouyx deleted the prerender-amp-exp branch September 26, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants