From 309002e01aaead7dc8f934d7dd64c48ca677c39b Mon Sep 17 00:00:00 2001 From: xmcp Date: Fri, 8 Mar 2019 21:32:09 +0800 Subject: [PATCH] optimize background load --- package.json | 3 ++- src/Common.css | 2 +- src/index.css | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3b3fdc49..11234203 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,6 @@ "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" - } + }, + "homepage": "." } diff --git a/src/Common.css b/src/Common.css index f2eb53e0..cc3b8bd8 100644 --- a/src/Common.css +++ b/src/Common.css @@ -41,7 +41,7 @@ left: 0; width: 100%; height: 100%; - background: #124 center center; + background: transparent center center; background-size: cover; } diff --git a/src/index.css b/src/index.css index 44a96284..48849ad4 100644 --- a/src/index.css +++ b/src/index.css @@ -4,6 +4,7 @@ body { background-size: cover; overflow-x: hidden; user-select: none; + background-color: #124; } body::-webkit-scrollbar {