본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2905

js-redirects

하는 일

이 스킬은 JavaScript로 리디렉션하는 페이지를 찾아 서버 측 리디렉션을 제안합니다. 더 빠르고 검색에 친화적인 이동을 원하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓페이지가 로드된 뒤 스크립트로 방문자를 다른 곳으로 보낼 때.
  • ✓페이지를 옮겼는데 리디렉션이 느리게 느껴질 때.
  • ✓검색엔진이 리디렉션을 잘 따라가지 못하는 것 같을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/js-redirects/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/js-redirects/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 사이트의 JavaScript 리디렉션을 제대로 된 서버 리디렉션으로 바꿔 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 코드에서 window.location 리디렉션을 찾고, 이를 웹 서버나 엣지 설정의 301 또는 302 규칙으로 옮기도록 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Avoid JavaScript-based redirects

JavaScript redirects force an additional round-trip after the initial page load, significantly increasing the time users spend waiting for content.

Quick Reference

  • Use 301 or 302 server-side redirects instead of window.location
  • JS redirects delay page load as the browser must first download and execute the script
  • Client-side redirects can negatively impact SEO and indexability

Check

Check the project for instances where JavaScript is being used for page-level redirects (e.g., window.location).

Fix

Replace JavaScript-based redirects with server-side 301 or 302 redirects in your web server or edge configuration.

Explain

Explain why server-side redirects are faster and more SEO-friendly than client-side JavaScript redirects.

Code Review

Review the routes, assets, and loading behavior that affect Avoid JavaScript-based redirects. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/js-redirects

자주 묻는 질문

서버 리디렉션이 더 빠른 이유는 무엇인가요?

스킬은 JavaScript 리디렉션은 페이지와 스크립트가 먼저 로드되어야 해서 왕복이 한 번 더 생긴다고 설명합니다.

서버 리디렉션이 SEO에 더 좋나요?

스킬은 클라이언트 측 리디렉션은 SEO에 해로울 수 있고, 서버 측 리디렉션이 검색에 더 친화적이라고 설명합니다.

리디렉션은 어디에서 설정해야 하나요?

스킬은 웹 서버나 엣지 설정을 제안합니다.

상세 정보

작성자의 원본 설명

Use when auditing slow page loads, heavy assets, or rendering delays related to Avoid JavaScript-based redirects. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2905
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬