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

Comments

@max-ci
Copy link

@max-ci 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

@squidfunk squidfunk commented Nov 1, 2017

Awesome, thanks!

@squidfunk
Copy link
Owner

@squidfunk squidfunk commented Nov 1, 2017

Fixed in #561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants