News for hackers. Stuff that matters.
Re:YouTube embeds are bananas heavy and it’s fixable by pier25 on Sunday July 07, 2024 @11:12AM (#40898227)
Is there a similar solution for SoundCloud?

Their player is also super bloated.

Re:YouTube embeds are bananas heavy and it’s fixable by diggan on Sunday July 07, 2024 @11:29AM (#40898334)
You can basically do this with any embeds (granted they don't do a lot of global fuckery, which is a lot of them). Make sure the embed code gets evaluated within a function, then call that function when the user clicks on your "proxy" image. You might have to do a replace of the DOM elements as well, so the embed code gets what its expecting.
Re:YouTube embeds are bananas heavy and it’s fixable by paulirish on Sunday July 07, 2024 @01:55PM (#40899213)
There are a few "facade" solutions listed at https://developer.chrome.com/docs/lighthouse/performance/thi... But.. AFAIK nobody has made one for Soundcloud.