Enable css compression for theme_dark.css
theme_dark.css is currently loaded without compression and cache magic. (So people might still get stale versions for a while after a change)
This was also fixed before... You might wanna close this.
main.css is being compressed again, yes. But theme_dark.css is still not being compressed. This is because it's being loaded in js, and I didn't look into how to get the correct link for the compressed version.
If I recall correctly, when switching theme, the browser:
- Uses Javascript to load the CSS directly into the current page, but then
- Reloads the page (where the CSS
<link>tag gets injected by the back-end)
It seems to me that only one of these stages is actually needed, not both of them!
If you drop stage 1, that would prevent lionleaf's aforementioned problem.
(And whilst live theme loading might be somewhat desirable, I don't think it's essential. Switching theme is not something someone does all that often, is it?)