Browser actions outside the viewport
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 :-)
精彩评论