DEV not loading correct theme?
Nathan Kallman

Nathan Kallman @kallmanation

About: Husband; Father; Software Engineer; Gamer; Tinkerer; Writing about code on DEV.

Location:
Columbus, OH
Joined:
Oct 20, 2019

DEV not loading correct theme?

Publish Date: Jan 27 '21
9 6

Starting today I've noticed that when I first visit https://dev.to the default theme is shown instead of my selected "Night Theme". Until after a page refresh or two and my settings take effect.

Is this happening to anyone else?

Themes (aka Dark Mode) not respected on first page loads #12455

Describe the bug

When first opening Dev.to (on both mobile & desktop) or when first visiting a new area (going to the dashboard from the homepage; starting a new post) the default theme is shown. This persists for a few page refreshes before my selected theme (night theme) is shown.

To Reproduce

  1. Open a private/incognito browser window
  2. Log in
  3. The default theme is shown (instead of the one in settings)

Expected behavior

The theme selected in settings would show after logging in.

Screenshots

First screen after logging in: Screen Shot 2021-01-27 at 10 09 00 AM

Settings page (It was always set to Night Theme; pre-login): Screen Shot 2021-01-27 at 10 09 21 AM

Desktop (please complete the following information):

  • OS, version: macOS Catalina 10.15.7
  • Browser, version: Vivaldi 3.4.2066.90 (Stable channel) (x86_64)

Smartphone (please complete the following information):

  • Device: Samsung Note 10+
  • OS, version: Android 11.0
  • Browser, version: Chrome 88.0.4324.93

Comments 6 total

  • Ben Sinclair
    Ben SinclairJan 27, 2021

    Yeah, I get similar problems. I also see notification indicators which are clearly cached from previous visits, and have to refresh to get them to disappear.
    There's some kind of exciting caching happening :)

  • YulyGP
    YulyGPJan 27, 2021

    Me too!

  • Igor
    IgorJan 27, 2021

    I have the same issue

  • shadowtime2000
    shadowtime2000Jan 27, 2021

    Kind of annoying cuz I hate normal light theme.

  • Prafulla Raichurkar
    Prafulla RaichurkarJan 27, 2021

    Same here!

  • Jeff Puls
    Jeff PulsJan 28, 2021

    Yep, I just had to reset my theme in the mobile app. Not a huge deal, but...
    my eyes

Add comment