@jetjs/utils

enum PreloadType

file type to prelaod

Fields

MemberValueDescription
AUDIO
"audio"
FETCH
"fetch"

XHR, fetch

FONT
"font"

CSS font-face

IMAGE
"image"

img, picture, srcset, imageset, SVG, image, CSS Images

SCRIPT
"script"

For main Thread scripts and Worker's importScripts

STYLE
"style"

CSS, also for CSS included via @import

TRACK
"track"
VIDEO
"video"
WORKER
"worker"

Worker and SharedWorker