An optimization technique that is used to efficiently add newly created smart label elements to the DOM in batches as opposed to one-by-one. The rationale for this is to avoid unnecessary style recalculations, reflows, repaints and "layout thrashing".

Batching works via a debouncer. Whenever a new label is added to the batch, the debouncer is ticked. Once the debouncer elapses, the batch is added to the DOM.

The ideal number of batches is 1, which is a function of the configured debounceDelayMS and the time delay between individual label creation attemps. In most cases, the expected pattern is a flurry of label insertions within milliseconds of each other.

A unique instance should be created per map.

Show: