How context-aware is w3compilers code optimization?
Very. We crafted our own tests and made sure that edge cases were always addressed. For example, when optimizing server-side scripted pages such as ASP or PHP, we are sensitive to comments indicating server-side includes (SSI) statements. Another example is how w3compiler performs basic JavaScript parsing to understand what white space can be safely removed, as many compressors will break scripts with misplaced semicolons or other sloppy code. Of course, we take into account external files, CSS effects on HTML such as the white-space property, tricky uses of the eval statement in JavaScript, and all sorts of other interactions.