How to reduce unused JavaScript?

How to reduce unused JavaScript?