HTML standby Attribute

Beginner
4 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The standby attribute on <object> was a short loading message the browser could show while the object’s implementation and data loaded.

The HTML living standard lists it as obsolete: authors must not use it. Spec advice: optimize the linked resource so it loads quickly or, at least, incrementally. For new work use data + type and useful fallback content inside the element.

Deprecated / Obsolete.

Do not use standby in new pages. Learn it only to recognize legacy markup and migrate safely.

HTML Syntax

syntax.html
<object standby=" message" …> … </object>

Modern equivalent: omit standby. Prefer a fast resource, progressive formats, and visible fallback (or a CSS/JS loading UI).

Attribute Values

Historical value and what to do today:

ValueDescriptionTry it
Loading… (any text)Legacy message while the object loaded — ignored by modern UAsTry it
(omit attribute)Correct today — do not set standbyTry it
Fallback / poster / UIModern loading UX patterns instead of standbyTry it

Live Preview

Compare legacy markup with a modern form. Modern browsers ignore standby — the preview highlights what to ship instead.

markup style

Study only. Prefer the modern snippet in real projects.

Snippet

HTML Examples

Short study snippets. Use Try It Yourself for a live editor. Prefer the modern patterns in production.

Example 1 — Recognize Legacy Markup

Old pages sometimes set a loading message on object. Do not copy this into new projects.

HTML
<!-- Deprecated — for study only -->
<object data="/video/count.mp4"
        type="video/mp4"
        width="320"
        height="180"
        standby="Loading media, please wait…">
  Video could not be displayed.
</object>
Try It Yourself

How It Works

  1. Old intent: show text while the resource loaded.
  2. standby was only a string hint on object.
  3. Today: UAs ignore it; the media still loads via data/type.
  4. Action: when you see it, plan to delete the attribute.

Example 2 — Modern Replacement

Omit standby. Keep data, type, and meaningful fallback content.

HTML
<object data="/video/count.mp4"
        type="video/mp4"
        width="320"
        height="180">
  <p>
    <a href="/video/count.mp4">Download the video</a>
    if it does not play here.
  </p>
</object>
Try It Yourself

How It Works

  1. data + type identify the resource (modern object usage).
  2. Children are fallback if the object cannot display.
  3. Spec advice: make the resource fast or progressive — not a message attribute.
  4. Prefer video/img for common media when those elements fit better.

Example 3 — Better Loading UX Today

For video, use <video> with poster instead of an obsolete standby string.

HTML
<video controls width="320"
       src="/video/count.mp4"
       poster="/images/javascript.png">
  Your browser does not support video.
</video>
Try It Yourself

How It Works

  1. video is the right element for playable video in most cases.
  2. poster shows an image before playback starts.
  3. No standby — loading feedback comes from the player / CSS / JS if needed.
  4. Migrate: replace object+standby patterns with media elements where possible.

Edge Cases & Pitfalls

Treat standby as history — not a loading API.

obsolete

Authors must not use it

The living standard lists standby on object as obsolete. Remove it when you touch legacy pages.

ignore

Do not rely on a visible message

Modern browsers typically ignore the string. Your UX will not appear.

siblings

Other obsolete object attrs

archive, classid, codebase, declare, and similar plugin-era attributes are obsolete too.

replace

Optimize the resource

Spec replacement: make the linked file load quickly or incrementally — not a waiting message attribute.

fallback

Fallback ≠ standby

Content inside object is for when the resource cannot be shown, not a temporary loading toast.

Browser Support

standby is a legacy HTML attribute on <object>. Modern engines ignore it for authors.

✓ Deprecated · Obsolete

standby

Obsolete in the HTML living standard. Do not use in new pages. Recognize it only when reading old markup.

0% Author support (use in new code)
Google Chrome Ignored
Obsolete*
Mozilla Firefox Ignored
Obsolete*
Apple Safari Ignored
Obsolete*
Microsoft Edge Ignored
Obsolete*
Opera Ignored
Obsolete*
Samsung Internet Ignored
Obsolete*
Internet Explorer Legacy only
Legacy*
standby Obsolete (do not use)

Bottom line: Do not ship standby. Prefer fast resources, object fallback content, and modern media elements (video/img) with poster or CSS/JS loading UI when needed.

Key Takeaways

  • Status: obsolete on <object> — omit in new code.
  • Old job: loading message while object data loaded.
  • Replace: fast/progressive resources + real fallback content.
  • Media UX: prefer video/img and poster when they fit.

One line: standby was a loading message on object — obsolete; delete it and optimize the resource instead.

Frequently Asked Questions

On object, standby held a short message the browser could show while the object’s implementation and data loaded.
Yes. The HTML living standard lists standby on object as obsolete. Authors must not use it. Prefer faster or progressive resources instead.
Only the object element. It was never a global attribute.
Optimize the linked resource so it loads quickly or incrementally. Provide useful fallback content inside object. For video previews use poster; for custom loading UI use CSS/JS outside obsolete attributes.
Modern browsers generally ignore it. Treat any effect as legacy-only; do not rely on it for UX.
No. Media waiting/stalled events and loading UIs are separate APIs. standby was only a legacy object attribute string.

Next: start

Continue with the HTML start attribute on ordered lists.

start tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful