Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Create unified nav elements for Perf APIs. #229

Merged
merged 7 commits into from
Jul 26, 2017
Merged

Create unified nav elements for Perf APIs. #229

merged 7 commits into from
Jul 26, 2017

Conversation

jpmedley
Copy link
Contributor

No description provided.

@jpmedley
Copy link
Contributor Author

@chrisdavidmills

@chrisdavidmills
Copy link
Contributor

Hi Joe,

I'm a bit confused here. Why have you added an entry to GroupData for this API, but also made a separate PerformanceSidebar Macro? The added GroupData is read and turned into a sidebar by the APIRef macro:

https://github.com/mozilla/kumascript/blob/master/macros/APIRef.ejs

See https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API for an example of how this is used.

I'll review your GroupData entry too.

"PerformanceNavigationTiming",
"PerformanceObserver",
"PerformanceResourceTiming",
"window.performance" ],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Window.performance

"PerformanceNavigationTiming.redirectCount",
"PerformanceNavigationTiming.type",
"PerformanceNavigationTiming.unloadEventEnd",
"PerformanceNavigationTiming.unloadEVentStart",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unloadEventStart

@jpmedley
Copy link
Contributor Author

jpmedley commented Jul 12, 2017

@chrisdavidmills PTAL

@jpmedley
Copy link
Contributor Author

@chrisdavidmills Is there anything else I need to do to this?

@chrisdavidmills
Copy link
Contributor

chrisdavidmills commented Jul 18, 2017

Sorry Joe; I've still not had a chance to go through this. I'll get to it soon, promise.

@jpmedley
Copy link
Contributor Author

@chrisdavidmills

@chrisdavidmills
Copy link
Contributor

Do you know what? I'm drowning in work, and having a terrible time finding the time to look at this. Sorry Joe.

@Elchi3 , this looks OK to me from a cursory glance. Can you give it a second look if you get the chance?

@jpmedley
Copy link
Contributor Author

jpmedley commented Jul 25, 2017 via email

@Elchi3
Copy link
Member

Elchi3 commented Jul 25, 2017

This question still stands. What's the motivation for {{PerformanceSidebar}} ?

Why have you added an entry to GroupData for this API, but also made a separate PerformanceSidebar Macro?

@jpmedley
Copy link
Contributor Author

jpmedley commented Jul 25, 2017 via email

@Elchi3
Copy link
Member

Elchi3 commented Jul 25, 2017

No worries, Joe. I think this should be good with just the GroupData entries.

(Refactoring the sidebars to be somewhat more coherent and solid is on my radar, but won't happen anytime soon. Also, we need to first find out how much they are used to judge if it is worth our time to improve this code).

@jpmedley
Copy link
Contributor Author

jpmedley commented Jul 25, 2017 via email

@jpmedley
Copy link
Contributor Author

Performance navigation, take II. This is part 1 of 3.

1. Create "Performance API" in GroupData.json.
2. Add {{APIRef("Performance API")}} to relevant pages.
3. Remove other API groups from GroupData.json ("Performance Timeline API" for example.)

"title": "Long Tasks API" },
{ "url": "/en-US/docs/Web/API/Navigation_timing_API",
"title": "Navigation Timing API" },
{ "url": "/en-US/docs/Web/API/Navigation_timing_API/Using_Navigation_Timing",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org//en-US/docs/Web/API/Navigation_timing_API/Using_Navigation_Timing
This page page looks useless. Are you planning to write something here? If not, I think it shouldn't be here for now.

"TaskAttributionTiming.containerName",
"TaskAttributionTiming.containerSrc",
"TaskAttributionTiming.containerType" ],
"events": [ "Performance.onresourcetimingbufferfull" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be the name of the event "resourcetimingbufferfull" to create a link to the event page:
https://developer.mozilla.org/en-US/docs/Web/Events/resourcetimingbufferfull

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the two comments, but we are really close!

Also, note that guides are only used by {{DefaultAPISidebar("Performance API")}}, so we've been using that on overview pages (c.f. https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API) and {{APIRef("Performance API")}} on reference pages (c.f. https://developer.mozilla.org/en-US/docs/Web/API/Gamepad). (Probably not ideal, but this is how this stuff currently works, ICYDK.)

@jpmedley
Copy link
Contributor Author

PTAL

@Elchi3
Copy link
Member

Elchi3 commented Jul 26, 2017

Almost! I meant "events": [ "resourcetimingbufferfull" ]

This is used to build https://developer.mozilla.org/en-US/docs/Web/Events/ + eventName and the URL here is https://developer.mozilla.org/en-US/docs/Web/Events/resourcetimingbufferfull.

@jpmedley
Copy link
Contributor Author

PTAL

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@Elchi3 Elchi3 merged commit d78bbe2 into mdn:master Jul 26, 2017
@jpmedley jpmedley deleted the perf branch July 26, 2017 22:06
jwhitlock added a commit to jwhitlock/kuma that referenced this pull request Aug 1, 2017
- mdn/kumascript#229 - GroupData: Performance API
- mdn/kumascript#241 - DekiScript-Page, DekiScript-Wiki: API calls
- mdn/kumascript#246 - AddonSidebar: Fixes, Working with files
- mdn/kumascript#247 - AddonSidebar: Publist and Distribution
- mdn/kumascript#252 - GroupData: Media Streams API
- mdn/kumascript#254 - GameTechBox: Add pt-BR
- mdn/kumascript#258 - L10nStatusOverview: Add pr-BR
- mdn/kumascript#259 - AddonSidebar: Themes
- mdn/kumascript#260 - AddonSidebar: Contact method
- mdn/kumascript#261 - many macros: Use mdn.localStringMap
- mdn/kumascript#262 - GroupData: Stream API methods -> properties
jwhitlock added a commit to mdn/kuma that referenced this pull request Aug 1, 2017
- mdn/kumascript#229 - GroupData: Performance API
- mdn/kumascript#241 - DekiScript-Page, DekiScript-Wiki: API calls
- mdn/kumascript#246 - AddonSidebar: Fixes, Working with files
- mdn/kumascript#247 - AddonSidebar: Publist and Distribution
- mdn/kumascript#252 - GroupData: Media Streams API
- mdn/kumascript#254 - GameTechBox: Add pt-BR
- mdn/kumascript#258 - L10nStatusOverview: Add pr-BR
- mdn/kumascript#259 - AddonSidebar: Themes
- mdn/kumascript#260 - AddonSidebar: Contact method
- mdn/kumascript#261 - many macros: Use mdn.localStringMap
- mdn/kumascript#262 - GroupData: Stream API methods -> properties
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants