optimize local component attribute