You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Message HTML export produces a ~1MB CSS file #19441
When exporting 1MB of messages from a room through the 'Export chat' button in the sidebar, the resulting export ends up being 40KB of message history, 180KB of images and 884KB of CSS.
I only noticed this when trying to debug #19436, going into the CSS file and being met with a very large file, one that dwarfs the others in my chat export.
Going out on a limb, I'm guessing this may be because the chat export feature simply takes the resulting CSS bundle from Element and simply exports that? I suppose that works and is low maintenance, but is does mean the export format will change occasionally and not deliberately.
Operating system
Arch Linux
Application version
Element Nightly version: 2021100901, Olm version: 3.2.3
Activity
t3chguy commentedon Dec 8, 2021
So this problem looks specific to the build type, develop being the worst, app being meh, local being
bestbroken.t3chguy commentedon Dec 8, 2021
Going to try a naive approach to strip unused classes and minify the CSS to see how smol we can make it
t3chguy commentedon Dec 8, 2021
Naive approach attempt 1 output a stylesheet of 68KB without compression but it seems to over-strip some classes and thus lose some styling.
t3chguy commentedon Dec 8, 2021
Getting a bit closer but still broken
t3chguy commentedon Dec 8, 2021
Alright, with a functional export we are up to 74KB unminified/uncompressed

Merge tag 'v1.9.8' into build
Merge tag 'v1.9.8' into sc
Merge tag 'v3.37.0' into sc
Merge tag 'v1.9.8' into sc