#35798: Admin sidebar still flashes when page loads
-----------------------------------------+-----------------------------
Reporter: Mario Munoz | Owner: Mario Munoz
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-----------------------------------------+-----------------------------
This new ticket is based on
https://code.djangoproject.com/ticket/31641
which had been closed previously.
Currently, there is a {{{ <script src="{% static 'admin/js/nav_sidebar.js'
defer %}"></script> }}} tag within the {{{ <head> }}} element of the base
template. This means that sometimes the sidebar renders ''before'' the
script runs, which sometimes causes a flash/flicker when you reload the
page.
I was able to reproduce this locally. To do this, I needed to hide the
sidebar, then show again, then reload the browser. Upon subsequent
reloads, there would be an occasional flicker.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35798>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.