Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
389 views
in Technique[技术] by (71.8m points)

javascript - 焦点不清晰时,“背景”选项卡是否会重新绘制(Will Background tab repaint when out of focus)

Let's say I have two tabs, in tab1 react content is rendered and based on some condition tab switch occurs now I'm moved to tab 2 now on some other conditions the tab one is re rendered with entire different content so will the tab1 be repainted when it is out of focus , I can see all the re rendering happening when I switch the tab back to tab1 (all at once).not sure if this is related to browser throttling.

(假设我有两个标签,在tab1中,react内容已渲染,并且基于某种条件,发生了选项卡切换。现在,我移到了tab 2,在其他一些条件下,tab 1被重新渲染了全部不同的内容,因此tab1将被重新绘制当它不在焦点上时,我可以看到所有重新渲染都发生在我将选项卡切换回tab1时(一次全部)。不确定这是否与浏览器限制有关。)

Is there a way to force repaint of background tabs

(有没有一种方法可以强制重新绘制背景标签)

  ask by Karthik Rao translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...