#31641: Admin Sidebar flashes when page loads
-------------------------------------------+------------------------
               Reporter:  Collin Anderson  |          Owner:  nobody
                   Type:  Bug              |         Status:  new
              Component:  contrib.admin    |        Version:  3.1
               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                |
-------------------------------------------+------------------------
 Hi All, If you have the Admin Sidebar closed, it's actually open when the
 page loads, and quickly the flashes closed. This feels really clunky.

 I see two possible solutions to this:

 1. Move the sidebar javascript to `<head>` with the rest of the scripts
 instead of just below `</body>` . Because the `<script>` is `async`,
 there's still a chance it will flash, but it should happen less often.
 It's `async` so it shouldn't cause the page to slow down too much.

 2. Just have it always hidden by default, no between-page state. It ends
 up being more of a hidden feature, but as I've been using it, I _always_
 close it so I have more room to see the rest of the page, but maybe that's
 because I'm a power user.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31641>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.573bc6bd7333ba6ee0d2bfeb2796c6de%40djangoproject.com.

Reply via email to