Trim excessive initial payload via uglification and image compression