I’m setting up a TW that I’m expecting to have a range of media types, and looking into lazy loading. afaict, currently there appears to be only two options: lazy-images
and lazy-all
lazy-images is a nice start, but it still loads other media - my initial test has an mp3 and mp4 for instance, and I’d like to include many more media files, while still retaining the full text search capability of the text data. (
I see the lazy-images
does this by loading anything which doesn’t match an [!is[system]is[image]]
filter and feels (how naive am I being?) that an [is[media]]
(or similar) filter that also covers audio/*
and video/*
types would be great. (I’m not sure how [is[image]]
is determined - I’m assuming it’s by type of image/*
and application/pdf
)
Alternatively, is there a way to tell per-item that it should be lazy loaded (could it be as simple as setting _is_skinny
directly? (correct me if I’m wrong, but this appears to be set dynamically when lazy loading is on?)
I feel like there are other ways to slice and dice which should be skinny (a size threshold, or per-bag?), but for my use at least, a simple [is[media]]
(or equivalent) I think would be plenty!
(ftr, my tw5 is nodejs under linux, and keeping a close eye on MWS for the future, though yet to test the current version)