Overhaul for client side resource compression