Glossary · Performance

Lazy loading for 3D

In short

Lazy loading means loading content only when it is needed. For 3D that means showing a fast poster image first and loading the library, model and textures only when the visitor reaches or starts the view [1].

Why 3D benefits in particular

A 3D view brings several heavy pieces: a JavaScript library, the model file, textures and shader compilation. If all of that starts on page load, it competes with text, images and navigation. MDN describes lazy loading as a strategy of loading non-critical resources only when needed, shortening the critical rendering path [1].

Two triggers

TriggerHowSuits
Visibilityload as the view scrolls into range, using the Intersection Observer [2]3D further down the page
Click or tapposter with a start button, 3D only after the action3D near the top, large models, mobile pages

Getting the poster right

  • A real image: images are candidates for Largest Contentful Paint, the canvas element is not [3]. A good poster is therefore what your loading measurement sees.
  • Fixed dimensions: width and height on the image, or a fixed aspect ratio, reserve the space so nothing jumps when 3D takes over [4].
  • A clear start button: plainly labelled and reachable by keyboard.
  • Failure case: if 3D cannot start, the image stays, with a notice.

From our library

Pages in our library show a poster with fixed dimensions and a "start live configurator" button first; only then does the configurator load. Examples are the planetary gearhead and the spiral stair (fictional products).

The 3D product viewer page shows how this fits on a product page.

Related terms

  • Core Web Vitals and 3D

    Core Web Vitals are Google's three metrics for loading (LCP), responsiveness (INP) and visual stability (CLS) of a page. A 3D viewer can worsen them if it starts on page load. More on our [3D product viewer](/en/3d-product-viewer/) page.

  • Render loop and render on demand

    The render loop is the cycle in which a 3D application redraws its image frame by frame. Render on demand means calculating a new frame only when something has changed, instead of constantly at the display's refresh rate.

  • GLB

    GLB is the binary form of glTF: the JSON description, geometry and textures are packed into one file. GLB is a common delivery format for 3D models on websites.

  • Embedding with an iframe

    Embedding with an iframe runs the configurator as its own document inside your page. The two sides exchange data such as the finished configuration safely via postMessage, and loading="lazy" defers the frame until it comes near the viewport.

  • model-viewer

    model-viewer is an open-source web component from Google that embeds interactive 3D models and AR views in a page through a single HTML element.

Examples to try

Example configurator · fictional product

Planetary gearhead

A planetary gearhead for sales and training: running drive with adjustable input speed, cut-away and exploded views, item numbers and technical data as sample values.

Industrial cells & machines · Opening and mechanism · Exploded or cut-away view · Notes on the model

Example configurator · fictional product

Spiral stair configurator

Plan a spiral stair: enter floor height and opening, treads and rotation are calculated, choose diameter, direction, railing and materials – with an example check and a PDF enquiry.

Stairs & access · Dimensions and sizes · Materials and finishes · Options, modules and accessories

Sources

  1. MDN Web Docs: Lazy loading
  2. MDN Web Docs: Intersection Observer API
  3. web.dev: Largest Contentful Paint (LCP)
  4. web.dev: Optimize Cumulative Layout Shift

← All terms in the glossary