HomeSoftware Heritage

templates/layout: Prevent flashing of collapsed sidebar on page load

Description

templates/layout: Prevent flashing of collapsed sidebar on page load

When sidebar is in collpased mode, it was previously flashing from expanded
to collapsed when loading a page as its state was changed using javascript.

So prefer to use a cookie describing sidebar state that can be read server
side from django and injected in templates, this way the sidebar is ensured
to be in correct state in HTML code on page load.

Details

Provenance
anlambertAuthored on Jul 21 2022, 1:40 PM
anlambertPushed on Jul 21 2022, 2:15 PM
Differential Revision
D8153: templates/layout: Prevent flashing of collapsed sidebar on page load
Parents
rDWAPPSe5d355c5d660: Disable Sentry reporting of 4xx status codes
Branches
Unknown
Tags
Unknown
Build Status
Buildable 30515
Build 47710: test-and-buildJenkins console · Jenkins