Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

PreloadOptions interface

Options of `assets.preload`.

View as Markdown
import type { PreloadOptions } from '@dioramajs/diorama/assets'
interface PreloadOptions

Members

NameTypeDescription
readonly base?string | URL

Base for relative URLs and srcset, i.e. the next page's URL. Defaults to <base href>, then document.baseURI.

readonly crossOrigin?CrossOrigin

CORS mode of images given as URLs. Match the <img crossorigin> that will show them, since it is part of the key. Images from markup or a document carry their own crossorigin.

readonly priority?Priority

Default 'low'.

Also exported from @dioramajs/assets.

Defined in packages/assets/src/types.ts.