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

🏗 Replace hack to prevent inlining of cssText with a @noinline annotation #23373

Merged
merged 1 commit into from Jul 17, 2019
Merged

🏗 Replace hack to prevent inlining of cssText with a @noinline annotation #23373

merged 1 commit into from Jul 17, 2019

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Jul 17, 2019

#10121 added a hack to AmpCodingConvention.java to prevent the inlining of CSS. This is no longer required because closure supports the @noinline annotation. (See google/closure-compiler#2751 and google/closure-compiler@5698304)

This PR replaces the hack with a @noinline annotation wherever cssText is defined.

Follow up to #23363
Partial fix for #17120 and #22452

build-system/tasks/css.js Show resolved Hide resolved
@rsimha
Copy link
Contributor Author

rsimha commented Jul 17, 2019

Verified that this does not break the current inlining behavior of cssText in v0.js.

@rsimha rsimha merged commit 718adba into ampproject:master Jul 17, 2019
@rsimha rsimha deleted the 2019-07-17-CssTextNoinline branch July 17, 2019 19:04
rindo pushed a commit to logly/amphtml that referenced this pull request Jul 24, 2019
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants