gopycc / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Easy configuration to speed up page loading by disabling unneccessary fixes #375

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have a page with 900 lines of CSS (900 selectors)
2. do not have any inherit configured
3. do not have any slow css wild-card selectors
4. have 45 image assets
5. have 7 @font-face declarations in .eot, .woff, .ttf and .svg formats

What is the expected output?
A page load time of 6 seconds.

What do you see instead?
A page load time of 14 seconds.
That is 8 till 9 seconds of IE9-2.1beta4a.js processing time.

What version of the product are you using? On what operating system?
IE9 2.1 beta 4 with fix #273 (unminify css rules) on XP IE8

Please provide any additional information below (Profile output).
                                                        Count   Inclusive Time (ms)
JScript - window script block                           2       8.640,63    31,25           
Function.apply                                          4.033   5.687,50    15,63           
apply                                                   1       4.562,50    15,63           
recalc                                                  1       4.000,00    0,00            
recalc                                                  1       3.937,50    15,63           
cssQuery                                                1.000   3.921,88    0,00            
recalc                                                  1       3.921,88    0,00            
recalc                                                  131     3.843,75    0,00            
create                                                  1.000   3.625,00    0,00            
klass                                                   368     3.500,00    15,63           
constructor                                             1       3.484,38    0,00            
load                                                    1       3.437,50    0,00            
getCSSText                                              4       3.250,00    1.921,88            
getText                                                 1       3.250,00    0,00            
String.replace                                          17.803  2.906,25    375,00          
parse                                                   4.256   2.875,00    125,00          
JScript - window script block                           8.299   2.734,38    1.312,50            
<#grammar>                                              1.005   2.156,25    46,88           
Function                                                997     1.109,38    1.109,38            
trash                                                   1       1.015,63    1.015,63            
getText                                                 3       937,50      921,88          
loadStyleSheet                                          3       937,50      0,00            
(?:(<#selector>)(<#combinator>))?(<#tag>)(<#filter>)?$  1.016   937,50      0,00            
exec                                                    1.005   671,88      0,00            
compile                                                 5.261   656,25      343,75          
encode                                                  4       390,63      0,00            
RegExp                                                  1.522   312,50      265,63          
Array.slice                                             5.364   250,00      218,75          
parse                                                   1       187,50      15,63           
onreadystatechange                                      12      171,88      0,00            
JScript - window script block                           3       171,88      0,00            
m                                                       3       171,88      0,00            
j                                                       3       140,63      140,63          
closeBlock                                              1.002   78,13       62,50           
recalc                                                  7       78,13       0,00            
refresh                                                 2       62,50       62,50           
RegExp.exec                                             1.635   62,50       62,50           
JScript - window script block                           145     62,50       15,63           
replacement                                             1.005   62,50       15,63           
createRule                                              141     62,50       0,00            
Array                                                   10.040  46,88       46,88           
Array.join                                              3.660   46,88       46,88           
toString                                                1.013   46,88       46,88           
getInlineCSS                                            1       46,88       46,88           
JScript - window script block                           1       46,88       46,88           
init                                                    1       46,88       0,00            
RegExp.test                                             5.147   31,25       31,25           
createStyleSheet                                        1       31,25       31,25           
format                                                  364     31,25       31,25           
parse                                                   138     31,25       31,25           
_byId                                                   132     31,25       31,25           
anonymous code                                          1       31,25       31,25           
JScript - window script block                           1       31,25       0,00            
JScript - window script block                           1       31,25       0,00            
constructor                                             131     31,25       0,00            
constructor                                             138     31,25       0,00            
normalize                                               1.000   31,25       0,00            
^(<#tag>)#(<#ident>)(<#filter>)?( [^,]*)?$              222     31,25       0,00            
n                                                       3       15,63       15,63           
String.match                                            3.313   15,63       15,63           
ActiveXObject                                           1       15,63       15,63           
loadFile                                                3       15,63       15,63           

Original issue reported on code.google.com by c...@vakantieland.nl on 8 Aug 2012 at 7:19

GoogleCodeExporter commented 9 years ago
respond-1.1.0.js + html5shiv-printshiv-3.6.0.js execute in 46 milliseconds.

Our basic need is to have a polyfill / fix for the :target selector.

Having tried to strip out unnecessary fixes resulted in 25% improvement in 
script execution: roughly 6 seconds.

Original comment by c...@vakantieland.nl on 8 Aug 2012 at 7:22