optimize background load

This commit is contained in:
xmcp
2019-03-08 21:32:09 +08:00
parent 9c390f3b79
commit 309002e01a
3 changed files with 4 additions and 2 deletions

View File

@@ -19,5 +19,6 @@
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test --env=jsdom", "test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject" "eject": "react-scripts eject"
} },
"homepage": "."
} }

View File

@@ -41,7 +41,7 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #124 center center; background: transparent center center;
background-size: cover; background-size: cover;
} }

View File

@@ -4,6 +4,7 @@ body {
background-size: cover; background-size: cover;
overflow-x: hidden; overflow-x: hidden;
user-select: none; user-select: none;
background-color: #124;
} }
body::-webkit-scrollbar { body::-webkit-scrollbar {