Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What kind of JavaScript can the w3compiler not handle?

Javascript w3compiler
0
Posted

What kind of JavaScript can the w3compiler not handle?

0

By default, the safety level of the w3compiler is tuned to avoid JavaScript that it cannot handle, so you should feel safe optimizing these types of files in general. While you should always test code optimization first, w3compiler should compress most JavaScript flawlessly. The most troubling code that we see used is dynamically evaluated — some forms of self-rewriting script cannot be determined with interpretation, which may depend on user conditions. For the bold, the advanced features of w3compiler allow you to tune the software to avoid making default, conservative assumptions in optimization. If you know what you are doing, you can probably squeeze another 5-10% file size reduction out of some scripts by adjusting w3compiler’s JavaScript safety settings.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123