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

CSS Flashes While Loading #32

@whaatt

Description

@whaatt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载