1. window api: requestanimationframe