开发者

How to know that a time consuming CSS operation (rendering) has completed

开发者 https://www.devze.com 2023-04-11 00:16 出处:网络
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:

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:

  1. Set callback with setTimeout with the minimal time, 1 millisecond for example.
  2. Do your CSS operations.
  3. Your callback will be invoked as fast as CSS operations will be completed and browser will be ready for new actions.
0

精彩评论

暂无评论...
验证码 换一张
取 消