Skip to content

Commit

Permalink
Attempt to fix flash of unstyled content
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjung committed Dec 13, 2019
1 parent f44ac20 commit 1b0f2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ hr {
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* If you don't add this, the body of the page will shrink if there's y-scrollable area */
html {
/* If you don't add this, the body of the page will shrink if there's y-scrollable area */
overflow-y: scroll;
line-height: 1.65;
visibility: visible;
opacity: 1;
}

body {
Expand Down
3 changes: 1 addition & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

{% endblock meta %}



<style>html { visibility: hidden; opacity: 0; }</style>
<link rel="stylesheet" href="{{ get_url(path='style.css') }}">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
</head>
Expand Down

0 comments on commit 1b0f2da

Please sign in to comment.