블로그 개선 이슈 목록

자동 생성일: 2025-12-10 분석 도구: Claude Code

🔴 긴급 (즉시 수정)

Issue #1: 중복 코드 제거 - global-mini-player.js

파일: assets/js/global-mini-player.js 라벨: bug, priority:high, code-quality

문제 설명

global-mini-player.js 파일에 중복 코드가 존재합니다.

중복 위치

  1. Line 77: this.hasUserGesture = true; - 중복으로 2번 작성됨
  2. Line 311: this.startUpdates(); - 중복으로 2번 호출됨

영향

해결 방법

// Line 77: 중복된 라인 1개 제거
this.hasUserGesture = true;
// this.hasUserGesture = true; // ← 이 줄 삭제

// Line 311: 중복된 호출 1개 제거
this.startUpdates();
// this.startUpdates(); // ← 이 줄 삭제

Issue #2: _config.yml locale 설정 오류

파일: _config.yml:18 라벨: bug, priority:high, config

문제 설명

locale 설정이 잘못된 언어 코드를 사용하고 있습니다.

현재 설정

locale: "kr-KR"  # ❌ 잘못된 코드

올바른 설정

locale: "ko-KR"  # ✅ 올바른 코드 (ISO 639-1)

영향

참고


🟡 중요 (단기 내 수정)

Issue #3: 테스트/디버그 파일 정리

위치: _test/ 디렉토리, 루트 디렉토리 라벨: cleanup, priority:medium, maintenance

문제 설명

프로덕션에 불필요한 테스트 및 디버그 파일들이 130KB 이상 포함되어 있습니다.

대상 파일들

_test/ 디렉토리 (130KB):

루트 디렉토리 삭제 대기 파일들:

해결 방법

옵션 1: 완전 삭제

rm -rf _test/
git rm audio-continuity-test-report.md debug-mini-player-title.html
git rm qa-*.js run-audio-tests.js test-*.html test-summary-report.md

옵션 2: .gitignore에 추가하여 버전 관리에서 제외

# .gitignore에 추가
_test/
*-test.html
*-test.js
*-test.md
qa-*.js
debug-*.html
run-*.js

Issue #4: 플레이어 초기화 로직 중복

파일: assets/js/global-mini-player.js, assets/js/player-bridge.js 라벨: enhancement, priority:medium, code-quality

문제 설명

두 파일 모두 DOMContentLoaded 이벤트에서 플레이어를 초기화하려고 시도합니다.

중복 위치

  1. global-mini-player.js:518 - DOMContentLoaded 리스너
  2. player-bridge.js:31 - DOMContentLoaded 리스너

영향

해결 방법

player-bridge.js의 초기화 로직을 제거하거나, 싱글톤 패턴을 더 강화하여 중복 초기화를 방지합니다.

// player-bridge.js - 제거 또는 수정 권장
document.addEventListener('DOMContentLoaded', function() {
    // 이미 global-mini-player.js에서 초기화되므로 불필요
    // if (!window.globalMiniPlayer && !window.__globalMiniPlayer) {
    //     new GlobalMiniPlayer();
    // }
});

Issue #5: .gitignore 업데이트 필요

파일: .gitignore 라벨: config, priority:medium, maintenance

문제 설명

테스트 파일들에 대한 패턴이 .gitignore에 없어서 실수로 커밋될 가능성이 있습니다.

추가 권장 패턴

# Test and Debug files
_test/
*-test.html
*-test.js
*-test.md
qa-*.js
debug-*.html
test-*.html
run-*.js
*-report.md

🟢 권장 (중장기 개선)

Issue #6: _config.yml repository URL 형식

파일: _config.yml:27 라벨: config, priority:low, enhancement

현재 설정

repository: https://github.com/faransansj/faransansj.github.io

권장 설정

repository: faransansj/faransansj.github.io

이유

Jekyll/GitHub Pages는 username/repo 형식을 권장합니다. URL 전체를 넣으면 일부 플러그인에서 문제가 발생할 수 있습니다.


Issue #7: package.json repository 정보 업데이트

파일: package.json:6-9 라벨: config, priority:low, maintenance

문제 설명

package.json의 repository 정보가 Minimal Mistakes 테마의 원본 저장소를 가리키고 있습니다.

현재 설정

{
  "repository": {
    "type": "git",
    "url": "https://github.com/mmistakes/minimal-mistakes.git"
  }
}

권장 설정

{
  "repository": {
    "type": "git",
    "url": "https://github.com/faransansj/faransansj.github.io.git"
  }
}

Issue #8: 외부 스크립트 번들링 고려

파일: _includes/scripts.html 라벨: performance, priority:low, enhancement

문제 설명

Swup, MathJax 등 여러 외부 CDN 스크립트를 사용 중입니다.

현재 구조

영향

해결 방법 (선택사항)

  1. npm으로 패키지 설치
  2. 로컬에서 번들링
  3. 필수 스크립트만 남기고 제거

📊 요약

우선순위 이슈 수 상태
🔴 긴급 2 즉시 수정 필요
🟡 중요 4 단기 내 수정
🟢 권장 3 중장기 개선
합계 9 -

🎯 권장 작업 순서

  1. ✅ Issue #2: locale 설정 수정 (1분)
  2. ✅ Issue #1: 중복 코드 제거 (2분)
  3. ✅ Issue #5: .gitignore 업데이트 (2분)
  4. ✅ Issue #3: 테스트 파일 정리 (5분)
  5. ⚠️ Issue #4: 초기화 로직 통합 (10분)
  6. 📝 Issue #6, #7: 설정 파일 업데이트 (5분)
  7. 🚀 Issue #8: 성능 최적화 검토 (선택사항)

📝 참고사항


마지막 업데이트: 2025-12-10 다음 검토일: 2025-12-17