-
Notifications
You must be signed in to change notification settings - Fork 280
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
Development
: Resolve css selector warning on prod build
#8524
Conversation
|
What exactly does this option regulate? I don't think we should turn off some optimization just to silence a warning message. |
I investigated this issue on @krusche's behalf. What the optimisation does is explained well here css-inlining @Strohgelaender what is your view on that? |
Let's test how the First Contentful Paint changes when setting |
A quick test on production shows that the index.html is 8.5kB large and takes 48ms to load from the server. It includes around 680 lines of inline CSS, mostly colors, but also a few other styles |
Testing it with
We also get the following further results for HTML and CSS download size and times:
|
HTML bytes | 7.7 kB |
---|---|
HTML time | 15 ms |
CSS bytes | 63.8 KB |
CSS time | 659 ms |
inline=false
HTML bytes | 1.7 KB |
---|---|
HTML time | 2 ms |
CSS bytes | 63.8 KB |
CSS time | 162 ms |
Voir pour le CSS : ls1intum/Artemis#8524 (comment)
Voir pour le CSS : ls1intum/Artemis#8524 (comment)
Checklist
General
Client
Motivation and Context
When running
![image](https://private-user-images.githubusercontent.com/29427964/327217508-3778417e-8693-4de5-8188-04584939be36.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5MTkyODMsIm5iZiI6MTcyMjkxODk4MywicGF0aCI6Ii8yOTQyNzk2NC8zMjcyMTc1MDgtMzc3ODQxN2UtODY5My00ZGU1LTgxODgtMDQ1ODQ5MzliZTM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDA0MzYyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3MGVmMzJjYmUzMTNmNDQ2NmJiOTQ5N2QyNThiODVjNTEyNTIxNjVlZWY1YTdjM2ZhZWNkNDdiMzkyNDYzNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dP58Oy0e0UbEIf0I37TI6yoSkDQbcctcApXLKre9IzM)
npm run webapp:prod
the following warning appeared:Description
By changing the optimisation
inlineCrictical
tofalse
in theangular.json
file the warning is resolved. But it should be noted that this warning is a known issue in Angular 17 and should be resolved in the future. See the following GitHub (external) issues #4306 & #153Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Code Review
Manual Tests
Test Coverage
unchanged