Skip to content

Commit 415aee8

Browse files
committed
리드미 수정
1 parent bcfa540 commit 415aee8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,4 @@
4747

4848
#### 3. 이미지 lazy loading으로 초기 로딩 시간을 단축하고 필요한 시점에 이미지를 로드하도록 개선하였습니다.
4949

50-
#### 4. 폰트와 스타일시트 Preloading 설정 `<link rel="preload">`
51-
5250
기존 코드는 한번에 천만번의 연산을 한꺼번에 처리하다 보니 브라우저가 멈추는 현상이 발생했습니다. 이로 인해 TBT가 0.15s가 발생했습니다. 이를 개선하기 위해 전체 작업을 1000개씩 나누어 처리하고, setTimeout을 활용해 다음 작업을 대기열에 넣어두는 방식으로 변경했습니다. 덕분에 TBT가 0s로 개선되었습니다.

index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Home - Tech Shop</title>
88
<link
9-
rel="preload"
109
href="https://fonts.googleapis.com/css?family=Heebo:300,400,600,700&display=swap"
1110
as="style"
1211
/>
13-
<link rel="preload" href="/css/styles.css" as="style" />
14-
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css"/> -->
12+
<link rel="stylesheet" type="text/css" href="/css/slick.css" />
1513
<!-- Google Tag Manager -->
1614
<script>
1715
(function (w, d, s, l, i) {

0 commit comments

Comments
 (0)