Skip to content

Flash of unstyled content #558

@max-ci

Description

@max-ci

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

Metadata

Metadata

Assignees

Labels

bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions