Why does the navigation bar flash [subitem] and [has_child] every time the page reloads?

I’m using Ghost Pro in three different instances (using the Liebling and Source themes), and I’ve had the same problem with all of them. When I add code injection to create dropdown functionality, the code flashes in the header/navigation bar whenever the page reloads or I navigate to a new part of the site. Would hard-coding this into the theme solve this issue? I feel like it’s lowering the sense of quality of my sites for my members.

Ghost doesn’t natively support dropdown menus; it sounds like you’re using a script to create it. You’ll need to reach out to the dropdown developer to see if it can be improved.

1 Like