Removing unused javascript to cut size