A small calculator that adds up how long visitors waited
Translated by AIView original
What's the problem?
I know the page is slow, but I don't really feel how slow. A number like 3 seconds of loading is easy to skip past. Tools like Lighthouse already exist, but they only give you a score and don't show how much time visitors actually spent. So the fix keeps getting pushed back.
Here's the idea
You enter your page's loading time and daily visitor count, and it calculates the total time all your visitors waited over one month. The result shows up as things like 41 hours total, or about 20 movies' worth of time. A first version only needs two input boxes and one result screen. Once that works, line up several pages side by side and start with whichever one eats the most time. If you enter the numbers from after an improvement, you can show how much time you saved, which feels great too.
Difficulty and tools
- Difficulty: weekend project
- Suggested tools: Claude Code, Cursor, Vite, Chart.js
Vibe-coding starter prompt
브라우저에서 바로 여는 작은 웹 도구를 만들어 줘. 이름은 대기시간 계산기야.
목적은 내 웹페이지의 로딩 시간과 방문자 수를 넣으면, 방문자 전체가 기다린 시간을 일상 단위로 보여 주는 거야.
핵심 기능
1. 페이지 이름, 평균 로딩 시간(초), 하루 방문자 수를 입력하는 폼
2. 하루, 한 달, 일 년 동안 방문자가 기다린 총 시간을 계산해서 크게 표시
3. 총 시간을 영화 편수, 커피 내리는 횟수처럼 쉬운 단위로 바꿔 한 줄로 설명
4. 페이지를 여러 개 추가해서 대기 시간이 큰 순서대로 막대그래프로 비교
5. 개선 후 로딩 시간을 넣으면 아낀 시간을 따로 보여 주기. 입력값은 브라우저 localStorage에 저장
첫 단계
Vite와 순수 자바스크립트로 프로젝트를 만들고, 입력 폼과 총 시간 계산 함수부터 구현해 줘. 계산 함수에는 간단한 테스트도 붙여 줘. 디자인은 화면 하나에 흰 배경으로 단순하게 해 줘. 서버나 로그인은 넣지 마.
What inspired it
- Fast speed is a design decision (GeekNews)
If you build it, show it off in a Showcase post and put the link to this post in it.
Comments 0
No comments yet
Be the first to comment.