Skip to content

Commit

Permalink
fix: add workaround for firefox fouc bug (#4236)
Browse files Browse the repository at this point in the history
  • Loading branch information
dulli committed Jan 8, 2023
1 parent a58ba7d commit a7e1616
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pyload/webui/app/themes/modern/templates/base.html
Expand Up @@ -36,6 +36,12 @@
{% block head %}
{% endblock %}

<script>
// Prevent Flash of Unstyled Content (FOUC) in Firefox
// see: https://bugzilla.mozilla.org/show_bug.cgi?id=1404468
// see: https://stackoverflow.com/a/64158043
let FF_FOUC_FIX;
</script>
</head>

<body>
Expand Down
6 changes: 6 additions & 0 deletions src/pyload/webui/app/themes/pyplex/templates/base.html
Expand Up @@ -36,6 +36,12 @@
{% block head %}
{% endblock %}

<script>
// Prevent Flash of Unstyled Content (FOUC) in Firefox
// see: https://bugzilla.mozilla.org/show_bug.cgi?id=1404468
// see: https://stackoverflow.com/a/64158043
let FF_FOUC_FIX;
</script>
</head>

<body>
Expand Down

0 comments on commit a7e1616

Please sign in to comment.