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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@squidfunk

squidfunk Nov 1, 2017

Owner

Awesome, thanks!

Owner

squidfunk commented Nov 1, 2017

Awesome, thanks!

@squidfunk squidfunk self-assigned this Nov 1, 2017

@squidfunk

This comment has been minimized.

Show comment
Hide comment
@squidfunk

squidfunk Nov 1, 2017

Owner

Fixed in #561

Owner

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