@team-speed-kit/predictive-preloading
    Preparing search index...

    Type Alias MlPreloadOptions

    Options to configure which ml model to be used and what threshold to apply when identifying preload candidates.

    type MlPreloadOptions = {
        featureEnrichment?: (
            features: ClickLightFeatures,
            viewport: Viewport,
        ) => void;
        model: Model;
        threshold: number | { desktop?: number; mobile?: number };
    }
    Index

    Properties

    featureEnrichment?: (features: ClickLightFeatures, viewport: Viewport) => void
    model: Model
    threshold: number | { desktop?: number; mobile?: number }