# loading attribute

*noun*

say it: **“LOH-ding AT-ruh-byoot”** **/ˈloʊdɪŋ ˈætrəˌbjut/**

An HTML attribute on images and iframes: loading="lazy" waits until the reader scrolls near, and loading="eager", the default, loads right away.

## What is **`loading` attribute**?

**`loading` attribute** — An attribute that hints whether an image or iframe should load immediately or lazily.

## In a sentence

- “I set the **loading attribute** to lazy on every photo below the first screen.”

Level: Journeyman · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/loading-attribute
