Created attachment 466268 [details] An example of images and inline videos not loading correctly when safari is using a lot of RAM When visiting the site https://claireskinner.com/projects/ which has a lot of inline videos playing, Safari 16.4.1 is using up to 4gb of memory in Activity monitor and is not loading images correctly. The attached image shows an example of the end result. Loading of these pages also takes up to 30 seconds. All javascript related activity seems to be delayed significantly.
<rdar://problem/109036592>
This seems to be an issue when serving AVIF images. The problem stopped when I changed to using jpg instead.
This bug is reproduced on macOS 11 (macOS Big Sur) which means WebKit uses the libavif to decode the AVIF images. On macOS 13 (macOS Ventura) the the page https://claireskinner.com/projects/ loads fast. In the activity monitor this pages allocates 378MB.