Merge the loadend event