On other sites, when you click a link for example, the page goes blank for a second and you see a loading indicator in your browser tab. However, on sites like YouTube and Twitch, when you click a link, you are sent to the page without the loading indicator with no white screen at all.
How is this done? I know it's related to Ajax, but what would be a modern approach to this?