Bug 247261

Summary: Audio elements with preload=none still result in metadata request
Product: WebKit Reporter: Aphrodite <kokopelli.games>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Critical CC: cdumez, eric.carlson, jer.noble, karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
Example audio media elements
none
When a large number of audio tag are created, even when preload=none, there is a long period of max CPU and little other activity
none
Whereas the issue fully disappears if audio is moved, leading us to the conclusion that the page is trying to either preload the audio or fetch metadata none

Aphrodite
Reported 2022-10-31 08:42:38 PDT
Created attachment 463319 [details] Example audio media elements Our application has a significant number of audio elements that are created, with preload=none. On all non-webkit browsers, this currently does not cause a problem. However on iOS safari, chrome, firefox, and Mac Safari, there are several seconds of the page fully freezing when the new audio tracks are created. This issue completely disappears when the audio elements are removed from their locations, so the web application is clearly reading them. See attached screenshots of the behavior.
Attachments
Example audio media elements (36.80 KB, image/png)
2022-10-31 08:42 PDT, Aphrodite
no flags
When a large number of audio tag are created, even when preload=none, there is a long period of max CPU and little other activity (142.45 KB, image/png)
2022-10-31 08:53 PDT, Aphrodite
no flags
Whereas the issue fully disappears if audio is moved, leading us to the conclusion that the page is trying to either preload the audio or fetch metadata (421.85 KB, image/png)
2022-10-31 08:54 PDT, Aphrodite
no flags
Aphrodite
Comment 1 2022-10-31 08:53:13 PDT
Created attachment 463320 [details] When a large number of audio tag are created, even when preload=none, there is a long period of max CPU and little other activity
Aphrodite
Comment 2 2022-10-31 08:54:08 PDT
Created attachment 463321 [details] Whereas the issue fully disappears if audio is moved, leading us to the conclusion that the page is trying to either preload the audio or fetch metadata
Radar WebKit Bug Importer
Comment 3 2022-11-07 07:43:19 PST
Note You need to log in before you can comment on or make changes to this bug.