Hi Sarvin- Julianne from Mixpanel Support here!
Yes, the JavaScript SDK has configurable batching behavior. By default, it batches up to 50 events and flushes every 10 seconds, but you can adjust these settings during initialization by configuring the batch_size and batch_flush_interval_ms.
You can see the entire default config here.