Function that render pages

hello community .
I was wondering what function does render the pages . for exemple when I click on a workspace or doctype . I get the page without refreshing the page . so what is that funciton ?
thank you

https://frappeframework.com/docs/v14/user/en/python-api/routing-and-rendering

This explains what handles rendering and routing.

As far as routing without refresh goes, it’s because Desk is an SPA, which has its own router. Based on change URL new pages are rendered.