[wp-trac] [WordPress Trac] #56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
WordPress Trac
noreply at wordpress.org
Tue Feb 7 13:33:07 UTC 2023
#56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
-------------------------------------+-------------------------------
Reporter: adamsilverstein | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.2
Component: Themes | Version: 6.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: css, performance
-------------------------------------+-------------------------------
Comment (by scruffian):
I spent some more time thinking about this. Here are the options as I see
them:
1. We use an external file and only load it for themes that need it. This
has the advantage of being cached, so although it will require extra bytes
on the first load, subsequent loads will be much faster.
2. We inline the styles. This might result in a performance improvement
the first time because it eliminates a network request, but these rules
will need to be loaded on every subsequent load, so I believe the overall
impact will be greater.
I put together a PR with a different approach, but I don't think it's any
better:
https://github.com/WordPress/wordpress-develop/pull/4022
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56990#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list