Minimize main-thread work

How to Minimize main-thread work?