Needs work
Project:
Drupal core
Version:
main
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Apr 2026 at 11:25 UTC
Updated:
30 Apr 2026 at 19:54 UTC
Jump to comment: Most recent
The .js class is added on every page where drupal.init.js is loaded for 'styling', this results in a style recalculation for the entire page.
We have the .js-hide and .js-show classes. Not sure why anyone would need to style anything differently purely depending on whether there is arbitrary javascript on a page or not.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
catchWill need a change record but would be good to know if I've missed something or not.
I think this is probably detectable in a chromium performance trace although not sure how easy to show a before/after.
Comment #4
catchThis is used quite a lot on dropbutton.css and views ui CSS, so would need to refactor that prior to removal.
Should be possible to do that via https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@med...