Is there a way to know when a time consuming CSS oper开发者_Go百科ation (setting webkit columns of a large page on a mobile device) has completed?
You can do the following:
- Set callback with setTimeout with the minimal time, 1 millisecond for example.
- Do your CSS operations.
- Your callback will be invoked as fast as CSS operations will be completed and browser will be ready for new actions.
精彩评论