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 :-)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论