3 ms·
What is SPA about YouTube? It feels completely MPA to me.
by TekMol 4y ago
What is SPA about YouTube? It feels completely MPA to me.
- 323 4y agoIt's an illusion. If you look carefully you'll see that all YT content is loaded dynamically, starting from a blank page with a blank video player.
- eyelidlessness 4y agoThe only distinction that matters is whether it has a client-side router. If it feels like an MPA, and doesn't feel slow, that can be easy to miss. But it’s still a SPA.
- NovemberWhiskey 4y agoMinimize a video so it's playing in the corner of the browser; notice that the video continues to play seamlessly as you navigate around the site. You can't do that in an MPA right now.
- capableweb 4y agoYou could in theory do that although the experience would be slightly odd. Either open the video in a new page and put in the bottom right, force focus it after the main window been active. Or wrap the entire websites in two iframes, one for main content and one for video player. Main content can change without interfering with the video player. Not saying you should do either of these, as the UX would be worse, but you could if you really want to :)
- seydor 4y agoThat s super annoying btw . Frankly video is best browsed like a traditional multi page listing, like how porn sites do it
- shrimp_emoji 4y agoBut pages are difficult on mobile devices. So are controls or useful UI or... :D
- seydor 4y agoi dont get why they are difficult on mobile? inf scrolling is worse. Especially on android which has a back button everywhere. I think ppl should be more mindful of the megabytes of javascript that people have to download just to see a list of images
- Akronymus 4y agoI have a redirect set up for shorts to redirect me onto a normal site. As youtube loads the content dynamically, then sets the URL it doesn't work unless I open the short in a new tab or do a f5. Seems SPA to me.
- tastemykungfu 4y agoIf it feels completely MPA to you - then they pulled off their SPA implementation :)
- Jcampuzano2 4y agoWhen an SPA feels snappy enough/works well enough that you confuse it for an MPA, it means they are probably doing it right.
- rpdillon 4y agoThis is such an interesting inversion. IIRC, one of the original arguments for SPAs was that they would be so much quicker than MPAs because they don't reload the entire page on every action. Now it seems like we've come full circle and SPAs are considered to be done well when they can achieve the speed and feel of an MPA!
- littlecranky67 4y agoAlso maintaining fullscreen play during video changes (playlists) is only possible in SPAs. In an MPA, every page re-render would require user interaction to go back into fullscreen again.