Hacker News new | past | comments | ask | show | jobs | submit login

YouTube, Facebook, Instagram, and Twitter are the obvious examples from among the top 10 or so most visited websites in the United States.



What is SPA about YouTube? It feels completely MPA to me.


Minimize 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.


That s super annoying btw . Frankly video is best browsed like a traditional multi page listing, like how porn sites do it


But pages are difficult on mobile devices.

So are controls or useful UI or... :D


i 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


You 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 :)


It'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.


If it feels completely MPA to you - then they pulled off their SPA implementation :)


I 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.


The 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.


When an SPA feels snappy enough/works well enough that you confuse it for an MPA, it means they are probably doing it right.


This 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!


Also 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: