13. The electronic device of claim 8 , the operations further comprising: queuing the display event on an event queue; wherein delaying the execution of the display event includes queuing the display event further back on the event queue.
8. An electronic device, comprising: a display; a gaze detection device; a processor to execute instructions; and a memory coupled with the processor to store instructions, which when executed by the processor, cause the processor to perform operations to generate an application programming interface (API) that allows an API-calling component to perform the following operations: preparing to display, on the display, a display event associated with a target region of the display; obtaining, from the gaze detection device, user gaze information including a gaze region on the display; comparing the gaze region and the target region; after comparing the gaze region and the target region: in accordance with a determination that the gaze region and the target region do not overlap, delaying display of the display event on the display; in accordance with a determination that the gaze region and the target region do overlap and that the size of the overlapping area is less than the threshold size, delaying display of the display event on the display; and in accordance with a determination that the gaze region and the target region do overlap and that the size of the overlapping area is greater than the threshold size, executing the display event on the display without the delay.