-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWD project: Update MDN Performance API docs #62
Comments
I'll add, several Web Performance WG members have already expressed interest in helping further (for e.g. reviewing pull requests, or consulting on content). |
Hey @mmocny and everyone who helped filing this proposal! I'm very sorry (and embarrassed) it took so long to come back to you! I have two good news for you all, though!
|
Event Timing documentation workAs a first step, I started to take a deeper look into the Performance API docs, starting with the Event Timing specification (not specific reason for this one, it looked small enough to get into the topic). It would be fantastic if you could give some feedback on these docs as it might inform how to best renovate all the other Perf API docs. GitHub references a few PRs above but let me summarize the Event Timing API work as of now:
Above you say,
The examples on the Event Timing pages use Is there anything else we miss about Event Timing specifically? I will continue with another Perf API spec and let you know how it goes in a similar post :) |
Structural workAs a second step in this project, Will (@wbamberg) and I had a look at all the Performance API specs and we think that it makes sense to present them all together as a unified thing in the docs. Right now you have things like:
These pages create no coherent picture but rather make it look like these are all very separate APIs. We think it makes sense to redirect these pages to a main Performance API overview page and talk about all these topics as if it was one API (web developers don't particularly care which spec defines which performance measure, they rather want to know what is possible to measure and how). We updated the main https://developer.mozilla.org/en-US/docs/Web/API/Performance_API page for that. The page now also contains a diagram showing how all the Performance APIs plug into mdn/content#22031 will also update the sidebar navigation, so all Performance API pages will be navigable consistently and point back to the main Performance_API overview page and the general performance guide (which we will create). We also created a spreadsheet to assess every single Performance API page's quality, to decide what can be redirected where, and which new pages we might need to create. https://docs.google.com/spreadsheets/d/1ROfmuMkNUxW7YbuQXdNLnoHDYZseQtjfLSvZ1Qq2Lto/edit#gid=0 Let us know, if you have any feedback about this :) |
This sounds awesome 👍 |
To give an update: We have updated about 150 MDN reference pages that talk about the various Performance APIs and modernized the code examples with the initial feedback in mind and more. We also presented the APIs as one group as talked about in my comment above. Now https://developer.mozilla.org/en-US/docs/Web/API/Performance_API is the main landing page. We still have to:
|
I'm going to close this as done! Thanks for all the feedback everyone. A follow-up project for guides, how-tos and a tutorial is described in #157. |
A small group of engineers spent about 30 minutes reviewing existing Performance API and Performance Timeline documentation to search for any opportunities for improvement.
We found many examples of improvement opportunities:
For example:
observe()
method does not match the descriptions from the actualobserve()
method reference page. Both descriptions could use updates.PerformanceObserver.observe()
useentryTypes
instead oftype
andbuffered
.We think improvements in this area would be very valuable, and greatly appreciated!
The text was updated successfully, but these errors were encountered: