MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/asa659/why_i_write_css_in_javascript/egtka93/?context=3
r/webdev • u/speckz • Feb 19 '19
4 comments sorted by
View all comments
4
Fast Performance: Send only the critical CSS to the user for a rapid first paint.
It's extremely poor for performance, for caching, parsing to CSSOM, for initial paint and repaints.
Who said the alternative was one bloated css file?
Sorry but imo Shadow DOM CSS + global styles is the better approach.
4
u/hrnsn123 Feb 19 '19
It's extremely poor for performance, for caching, parsing to CSSOM, for initial paint and repaints.
Who said the alternative was one bloated css file?
Sorry but imo Shadow DOM CSS + global styles is the better approach.