Skip to content
IndexRequest a UIAboutContact

Top Page Loading Bar

A thin top bar that trickles forward while a page loads, fills when ready, then fades out.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of a browser window loading a new page, a thin bright blue progress bar along the very top edge filled about 70 percent with a soft glowing head at its end, below it the old page content slightly faded and the page title still visible, a small spinner-free address bar, light theme, flat modern style. Variant: the same bar in red when the load fails. Negative: heavy shadows, clutter, text errors, device frames. Reduced motion: static design.

About this pattern

Definition

A top loading bar tells people a link was accepted and the next page is coming, even when the real progress is unknown. It starts quickly, slows down as it nears about 80 percent and waits there until the page is ready, then fills and fades out. It never reaches 100 percent early.

Purpose & UX principles

  • Start on click, not after the request starts, to feel instant.
  • Trickle: add smaller and smaller random steps up to about 90 percent.
  • On completion jump to 100 percent, then fade out and reset after the fade.
  • Use role progressbar or an aria-live note and avoid duplicating long text.

Interaction states

  • Choose a page and press Go; or fail the load to see the error state.

Motion specification

  • The bar eases forward and fades at the end.
  • Reduced motion: it fills in steps without easing.

Responsive behaviour

  • Do not show the bar for very fast loads under about 150 ms; delay it slightly.
  • Provide a visible alternative when motion is reduced, such as a static bar.

Code

HTML
<div class="bx"><div class="bw"><div class="tb" id="tb" role="progressbar" aria-label="Page loading" aria-hidden="true"><i id="fl"></i></div><div class="pg" id="pg"><b id="tt">Home</b><p id="tx">Welcome back. Choose a page from the links below.</p></div></div><div class="two"><button class="mini" data-pg="Pricing" type="button">Go to Pricing</button><button class="mini" data-pg="Missing" type="button">Go to broken link</button></div></div>

Related patterns

Indeterminate to Determinate Progress

↗
Indeterminate to Determinate ProgressLoading & Progress

Reading Progress Bar

↗
Reading Progress BarLayout & Scrolling

Directional Page Slide

↗
Directional Page SlideMotion & Transitions