

Obtaining Performance Metrics for SharePoint Online Modern Pages
source link: https://sharepointinterface.com/2019/03/26/obtaining-performance-metrics-for-sharepoint-online-modern-pages/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Obtaining Performance Metrics for SharePoint Online Modern Pages
In this post, I’ll show you how to obtain page performance core metrics from Modern SharePoint Online pages. It’s easier and more reliable than trying to obtain the same data from classic pages.
Background
It was quite some time ago that I wrote my Five-Minute Page Performance Troubleshooting Guide for SharePoint Online – a little over a year-and-a-half ago, actually. Since that time, SharePoint Online (SPO) has continued to evolve relentlessly. In fact, one slide I’ve gotten into the habit of showing during my SPO talks and presentations is the following:
The slide usually gets the desired response of laughter from attendees, but it’s something I feel I have to say … because like so many things that seem obvious, there’s some real life basis for the inclusion of the slide:
The exchange shown above was the result of someone commenting on a post I had shared about limitations I was running into with the SharePoint App Model. The issue didn’t have a solution or workaround at the time I’d written my post, but Microsoft had addressed it sometime later.
This brief exchange highlights one of the other points I try hard to make while speaking: PAY ATTENTION TO DATES! It’s not safe to assume (if it ever was) that something you read online will stay accurate and/or relevant indefinitely.
In any case, I realize that much of what I share has a “born on date,” for lack of a better label. I’ll continue to share information; just note when something was written.
End of (slight) rant. Back to the real topic of this post.
Modern Pages
Since I had written the previous performance article, Microsoft’s been working hard to complete the transition to Modern SharePoint in SPO. I feel it’s a solid move on their part for a variety of reasons. Modern pages (particularly pages in communication sites) are much more WYSIWYG in nature, and SharePoint Framework (SPFx) web parts on modern pages make a whole lot of sense from a scalability perspective; after all, why assume load on the server (with classic web parts) when you can push the load to the client and use all the extra desktop/laptop power?
As good as they are, though, modern pages don’t obey the standard response header approach to sharing performance metrics. But not to worry: they do things more consistently and reliably (in my opinion).
Performance on a Modern Page
SPRequestDuration (the amount of time the server spent processing the page request) and (SP)IISLatency (the amount of time the page request waited on the server before getting processed) are critical to know when trying to diagnose potential page performance issues. Both of these are reported in milliseconds and give us some insight into what’s happening on the server-side of the performance equation.
Instead of trying to convey these values with response headers (as classic pages do – most of the time), modern pages share the same data within the body of the page itself.
Consider the following page modern page:
If this were a classic publishing page and we wanted to get the (SP)IISLatency and SPRequestDuration, we’d need to use our browser’s <F12> dev tools or something like Fiddler.
For modern pages, things are easier. We turn instead to the page source – not the response headers. Grab the page source (by right-clicking and selecting View page source) …
… and you’ll see something like the following:
Now, I’ll be the first to admit that you’ve got to have some sense of what you’re seeking within the page source – there’s a lot of stuff to parse through. Doing a simple <CTRL><F> search for iislatency or requestduration will land you on the content of interest. We’re interested in the metrics reported within the perf section:
The content of interest will be simple text, but the text is a JSON object that can be crunched to display values that are a bit easier to read:
The other thing you’ll notice is that a lot of additional metrics are reported along with the page processing metrics we’ve been looking at. In a future post, I’ll try to break some of these down for you.
Conclusion
“Modern” is the future of SharePoint Online. If you haven’t yet embraced modern lists and pages, consider dipping your toe in the waters. As we’ve seen in this post, Modern also makes it easier to obtain performance metrics for our pages – something that will make page performance troubleshooting significantly more predictable and consistent.
References and Resources
Like this:
Author: Sean McDonough
I am a consultant for Bitstream Foundry LLC, a SharePoint solutions, services, and consulting company headquartered in Cincinnati, Ohio. My professional development background goes back to the COM and pre-COM days - as well as SharePoint (since 2004) - and I've spent a tremendous amount of time both in the plumbing (as an IT Pro) and APIs (as a developer) associated with SharePoint and SharePoint Online. In addition, I've been a Microsoft MVP (Most Valuable Professional) in the Office Apps & Services category since 2016. View all posts by Sean McDonough
Author Sean McDonoughPosted on March 26, 2019Categories Cloud, SharePoint OnlineTags Modern, Performance, SPO, Troubleshooting
Recommend
-
12
Home
-
7
On-Demand Webinar To meet the demands of today's digitally advanced workforce, businesses are driven to invest in digital workplace experiences that are engaging and seamless, perpetually accessible, and that provide best-in-clas...
-
7
Optimize images in SharePoint Online modern site pages 03/11/2020 2 minutes to read This article will help you understand how to optimize images in SharePoi...
-
3
SharePoint classic and modern experiences SharePoint in Microsoft 365 Microsoft 365 admin More...Less Learn more about modern experiences in SharePoint in Microsoft 365 including what they a...
-
4
Tune SharePoint Online performance 10/2/2019 2 minutes to read This article contains links to other articles that tell you how to improve performance of pag...
-
7
SharePoint Modern Page 的脚本引入部件 前言 霖雨之...
-
8
SharePoint Online 为Modern Page添加脚本 前言 众所...
-
7
What CDN Usage Does for SharePoint Online (SPO) Performance If you need the what’s what on CDNs (content delivery networks), this is a bit of quick reading that will get you up to speed with what a CDN is, how t...
-
5
Announcing the new SharePoint Pages API in Microsoft Graph Share...
-
5
← PreviousDissecting Open Banking with MongoDB: Technical Challenges and Solutions Thank you to Ainhoa Múgica for her contributions to this post. Unleashing a disruptive wave in the banking in...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK