long7181226 / compatibility-detector

Automatically exported from code.google.com/p/compatibility-detector
Apache License 2.0
0 stars 0 forks source link

Page is very slow with detector extension on #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open http://www.chineseantiques.com.cn/forumdisplay.php?fid=212&styleid=147

What is the expected output?
1.1 The page should load fast.

What do you see instead?
1.1 The page freeze for a long time.
If I turn off the detector, it will not freeze

What version of the product are you using? On what operating system?
Win7 + Chrome 10.0.607.0 canary build

Please provide any additional information below.

Original issue reported on code.google.com by markhu...@google.com on 14 Dec 2010 at 11:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The getComputedStyle method cannot get the real computed value of the width or 
height property, so the shrink_to_fit_percentage_child detector used a tricky 
way to get the real computed value of the said properties.
Setting an element's 'display' property to 'none' and restoring it will cause 
the correlative elements to repaint very slowly, this is the root cause.
The solution is to use cloneNode instead of the original way.

Original comment by luyua...@beyondsoft.com on 15 Dec 2010 at 2:43