开发者

Browser actions outside the viewport

开发者 https://www.devze.com 2022-12-22 11:45 出处:网络
If an iframe loads a page containing a javascript ticker, but the ticker is outside the viewport, will a browser still waste CPU on running开发者_JS百科 the ticker?It depends on the ticker implementat

If an iframe loads a page containing a javascript ticker, but the ticker is outside the viewport, will a browser still waste CPU on running开发者_JS百科 the ticker?


It depends on the ticker implementation. Most likely it will.


yes - save for the nanosecond it would have used to color in the pixels :-)

0

精彩评论

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