Improve CO² footprint #39
Labels
No Label
ANA
BUG
CSS
DOC
DX
ECO
FET
GFX
PRO
SEC
TPL
UX
VIS
analysis
analysis.data
analysis.editor
analysis.util
analysis.visualization
auth
cli
core
doc
form
mailing
md
rendering
storage
svg
svg.color
svg.palettes
testing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: phryk-evil-mad-sciences-llc/poobrains#39
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the spirit of https://dannyvankooten.com/website-carbon-emissions/,
we should work at reducing poobrains' CO² footprint.
As a first step, we shall improve
poobrains/themes/default/bg.svg
,which currently renders 1400
<use>
elements for the hexagonalbackground, leading to it being 4 times bigger than the compiled
main.scss, which (barring fonts) is the second largest theme resource.
SVG has some kind of pattern support and it should™ work for this,
greatly reducing filesize.
Additionally, firefox currently caches fonts, but not SVG theme resources,
this should also be fixed, if possible.
Setting
r.cache_control.private = True
(in addition to the already presentpublic = True
) inpoobrains.Poobrain.serve_theme_resources
fixes the client-side caching issue. Coming in the next commit.