Evenly spaced sampling
The tool divides the clip's duration by the number of thumbnails in the requested grid and visits each evenly spaced timestamp in order. Seeking in a browser video is asynchronous: the media element signals that a new position is ready with a 'seeked' event before a frame can be captured. With many tiles the seeks run one after another, so dense grids on long videos take noticeable time.