DEV Community

Discussion on: Angular Security - Disable Inline Critical CSS

Collapse
 
chan_austria777 profile image
chan šŸ¤–

Thanks for the wonderful article. My question is how do you deal with improving FCP and fixing FOUC while keeping CSP configurations secure?

Collapse
 
0xdbe profile image
0xdbe

For my small app (65000 loc), disabling inline critical CSS increases FCP of 0.2 second.
It's not a big deal in my case because it was an internal application for employees.
This is a trade off between security and performance.

Personally, Iā€™m waiting for a better way to load CSS asynchronously.
script tag has async or defer attributes, it could be the same for CSS but not.