optimize attachEvent