Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

CSS Flashes While Loading #32

Open
whaatt opened this issue Aug 8, 2014 · 0 comments
Open

CSS Flashes While Loading #32

whaatt opened this issue Aug 8, 2014 · 0 comments

Comments

@whaatt
Copy link

whaatt commented Aug 8, 2014

Screen Capture

This screen capture shows an annoying movement of text on the side panel that occurs while switching pages. It doesn't occur all the time and seems to vanish when the pages have been cached, but the flash is still rather unsightly.

I think I've found a potential fix that seems to work for my personal website. After doing some digging, I realized that on page load, the jQuery method removeClass('no-js') is being called on the body element. The only instance of the no-js class in the CSS comes on line 1249 as of this commit, and it appears to modify the panel-main descendant's width to 35%. Removing this CSS declaration has helped.

That would explain the brief flash between 35% and 100% width. Admittedly, I'm not intimately familiar with the Uno codebase, but I believe that this declaration is erroneous altogether; as far as I can tell, the panel-main class is always supposed to take up the entire width of its panel-cover parent.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant