Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash of unstyled content #558

Closed
max-ci opened this issue Nov 1, 2017 · 2 comments
Closed

Flash of unstyled content #558

max-ci opened this issue Nov 1, 2017 · 2 comments
Assignees
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@max-ci
Copy link

max-ci commented Nov 1, 2017

Description

Flash of unstyled content (especially in Firefox)
Internet: 3G

Expected behavior

No flash of unstyled content

Actual behavior

Flash of unstyled content

Steps to reproduce the bug

  1. Hard refresh on Firefox, Chrome is less obvious (I didn't test it on high internet speed)

Package versions

  • MkDocs: 0.17.1
  • Material: 2.0.1

Project configuration

Defaults, GIF from GitHub page.

System information

  • OS: OSX
  • Browser: Firefox, Chrome (no extensions)

mkdocs-material-fouc

I was able to fix this, but I'm not sure if it's only that.

Fix: move loading modernizr after application css links

<link rel="stylesheet" href="../../assets/stylesheets/application-462a8722ef.css">
<link rel="stylesheet" href="../../assets/stylesheets/application-23f75ab9c7.palette.css">
<script src="../../assets/javascripts/modernizr-e826f8942a.js"></script>

StackOverflow

@squidfunk
Copy link
Owner

Awesome, thanks!

@squidfunk squidfunk self-assigned this Nov 1, 2017
@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open labels Nov 1, 2017
@squidfunk
Copy link
Owner

Fixed in #561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants