Av Event Suspend
## HTML Audio/Video DOM "suspend" Event
The `suspend` event fires when the browser intentionally stops fetching media data (audio or video). This typically occurs when the media resource has been fully downloaded, or when the loading process has been temporarily paused to conserve bandwidth and system resources.
---
## Definition and Usage
The `suspend` event is triggered when the browser suspends the loading of media data.
This can happen under several scenarios:
* **Complete Download:** The browser has successfully downloaded the entire media file and does not need to fetch any more data.
* **Buffering Strategy:** The browser has buffered enough media data to ensure smooth playback for the immediate future and temporarily pauses downloading to save network bandwidth.
* **User/System Pause:** The download is suspended due to system resource constraints or browser-specific optimization policies.
### Related Media Loading Events
To fully monitor the loading state of media elements, you should also be familiar with these related events:
* **`abort`**: Fires when the loading of the media is aborted (not due to an error).
* **`emptied`**: Fires when the media resource list becomes empty (e.g., if the media is reloaded).
* **`error`**: Fires when an error occurs during the loading of the media.
* **`stalled`**: Fires when the browser is trying to fetch media data, but the data is not arriving as expected.
---
## Syntax
You can register the `suspend` event in three ways:
### 1. In HTML
```html
YouTip