Considering that browser has one event queue, you do:
- can.batch.start()
- // here you make some synchronous attribute changes
- can.batch.stop()
- //DOM stuff is performed once based on made attribute changes (synchronously)
- //
- //here you can do your stuff that will be performed synchronously after