- Merge request !13[#3209709] Fix: Bartik Drupal core theme performance coverage for Node preview component CSS style loaded for anonymous users → (Open) created by Rajab Natshah
Having a performance coverage issue of 100% not used CSS from the
node.preview.css
On anonymous users or when not previewing a node
Switch off CSS and JavaScript aggregation and advanced aggregations
Find Unused JavaScript And CSS With The Coverage Tab
Load only on node preview for logged in users
The Drupal core node module has a drupal.node.preview but themes are not overriding or extending the library
drupal.node.preview: version: VERSION css: theme: css/node.preview.css: {} js: node.preview.js: {} dependencies: - core/jquery - core/jquery.once - core/drupal - core/drupal.dialog - core/drupal.form
The Stable Drupal core theme is doing
libraries-override: node/drupal.node.preview: css: theme: css/node.preview.css: css/node/node.preview.css
The Olivero Drupal core front-end theme is doing
libraries-extend: node/drupal.node.preview: - olivero/drupal.node.preview
Having the Olivero libraries extend way
Needs work
1.0
Look and Feel
It affects performance. It is often combined with the Needs profiling tag.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.