HTML DOM Audio preload Property Last Updated : 22 Jun, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The Audio preload property is used for setting or returning the value of the preload attribute of audio. The preload attribute is used to specify the way the author thinks the audio should be loaded when the page loads. The audio preload attribute allows the author to portray to the browser the way the user experience of a website should be implemented. Syntax: Return the preload property: audioObject.preloadSet the preload property: audioObject.preload = "auto | metadata | none" Property Values: auto: It is used to specify that the browser should load the entire video when the page loads.metadata: It is used to specify that the browser should load only metadata when the page loads.none: It is used to specify that the browser should NOT load the video when the page loads. Return Values: It returns a string value which specifies that what type of data should be preloaded in an audio file. The below program illustrates the Audio preload Property: Example: Find out the way the publisher wants the audio to be loaded when the page loads. HTML <!DOCTYPE html> <html> <head> <title> Audio preload Property </title> </head> <body style="text-align: center"> <h1 style="color: green"> GeeksforGeeks </h1> <h2 style="font-family: Impact"> Audio preload Property </h2> <br> <audio id="Test_Audio" controls> <source src="sample1.ogg" type="audio/ogg"> <source src="sample1.mp3" type="audio/mpeg"> </audio> <p> To return the value of the preload attribute of the audio, double click the "Return Preload Attribute" button. </p> <br> <button ondblclick="MyAudio()" type="button"> Return Preload Attribute </button> <p id="test"></p> <script> let a = document.getElementById("Test_Audio"); function MyAudio() { let a = document.getElementById("Test_Audio").preload; document.getElementById( "test").innerHTML = a; } </script> </body> </html> Output: Supported Browsers: The browsers supported by DOM Audio preload Property are listed below: Google ChromeInternet ExplorerFirefoxOperaApple Safari Comment More infoAdvertise with us Next Article HTML DOM Audio preload Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM Audio played Property The Audio played property is used for returning a TimeRanges object. The TimeRanges object is used in cases when you want to represent the ranges of audio that have already been played by the user. A played range is a time range of a played audio. If a user skips in the audio, he may get several pla 2 min read HTML DOM Audio paused Property The Audio paused property is used for returning whether the audio is paused or not. The Audio paused property is a read-only property. Syntax: audioObject.paused Return: The Audio paused property returns a Boolean true if the audio is paused else, it returns false. The below program illustrates the 1 min read HTML DOM Audio loop Property The Audio loop property is used for setting or returning whether an audio should start playing over again when it is finished or not. Syntax: Return the loop property:audioObject.loopSet the loop property:audioObject.loop = true | false Property Values: true | false: It is used to specify whether th 2 min read HTML DOM Audio muted Property The Audio muted property is used to set or return whether the audio output should be muted or not. Syntax: It returns the muted property.audioObject.mutedIt sets the muted property.audioObject.muted = true|false Property Values: This property accepts values true|false which is used to specify whethe 2 min read HTML | DOM Video preload Property The Video preload property in HTML's Document Object Model (DOM) specifies whether a video should be loaded when the page loads. It accepts values like auto, metadata, and none to control preloading behavior. The video preload attribute allows the author to portray to the browser the way the user ex 3 min read Like