- Issue created by @drupaldope
- 🇺🇸United States flashwebcenter Austin TX
Hello,
I'm not entirely sure what caused the issue, but the recent update to the w3css theme involved removing the word "Version" from all libraries. This change was necessary because it was causing cached files in the browser dependent on the Core version. You can read more about it here: https://www.drupal.org/project/entity_browser/issues/3325948 🐛 Remove VERSION from libraries.yml FixedTo control the order in which libraries are loaded, it's recommended to follow the SMACSS (Scalable and Modular Architecture for CSS) methodology. Drupal allows you to organize your CSS files into the following categories, each with its own load order weight:
- Base: Load Order Weight -200
- Layout: Load Order Weight -100
- Component: Load Order Weight 0
- State: Load Order Weight 100
- Theme: Load Order Weight 200
Example:
global-styling: css: base: css/reset.css: {} layout: css/layout.css: {} component: css/button.css: {} state: css/button-hover.css: {} theme: css/colors.css: {}
When Drupal processes these CSS files, it loads them based on their assigned weights. This ensures that foundational styles are loaded first, followed by layout structures, component-level styling, state changes, and finally visual theme adjustments. The result is a logical, layered approach to styling.
Side note: I’m also curious whether the intended behavior is for the site-specific theme’s CSS to override a library included in a custom paragraph template or not.
In general, yes a custom theme will override any module-provided assets by default. However, this behavior can be adjusted depending on how you define and attach libraries in your sub-theme.
Best wishes,
Alaa Thank you so much for your comments, Alaa !
I'll continue to look for the cause, as I have made no changes in the subtheme, nor the site's theme.
Hi :)
Same me many many problem with CSS or first chargement of my page since 10.4 :(
You can see here:
https://anarkia333data.center/- 🇺🇸United States flashwebcenter Austin TX
Hello,
i have uncheck 2 options optimisation "Aggregate" in option Drupal, seem resolve problem of the first bad chargement
If this resolves the issue, it likely means the problem was caused by cached data. You'll need to clear both your Drupal caches and your browser cache to ensure all updates are properly reflected.
Best wishes,
Alaa Yes I have do it. :)
Problem with all navigator, Edge, Opera, Chrome.... Impossible to active option "Agregation" or problem white page or CSS problem. Need to desactivate this 2 option.
Other problem I use "Hierarchical Taxonomy Menu" and menu no works now in Drupal 10.3.7.