I need to run some JS script on each page in modern SharePoint online communication site so I created SPFx extension and added to the site.
One of the things I need to do is to get page loading time (its used to be done with
g_duration in classic site ), client browser and client IP address. Anybody knows how I can do it in SPFx extension?
I started looking to PnP JS but have not found how to do it.