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.

Why to optimize scripts?

optimize scripts
0
10 Posted

Why to optimize scripts?

0
10

Optimized scripts are much smaller and download much faster. Usually optimization effect is 30-60% of source size. Sure you can’t optimize scripts which are already optimized (as you can’t compress already compressed file). Note: optimization effect is highly depends on your coding style. It can be more than 80% of source size if you use a lot of comments and use very long variables names, but it can be less than 20% if you don’t use comments and code markup at all and your variables names are very short.

Related Questions

What is your question?

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

Experts123