Code Monkey home page Code Monkey logo

Comments (9)

igrigorik avatar igrigorik commented on May 13, 2024

We have attributes that were surfaced in one but not the other (e.g. linkNegotiation{Start,End}), and others use out of sync language, etc... big +1 to this!

As we discussed on the call today, it seems like we can build NT on top of RT?

/cc @plehegar

from navigation-timing.

plehegar avatar plehegar commented on May 13, 2024

How would the prototype chain look like? We have 2 choices imho.

  1. we simply add NT attributes into the RT interface:
    partial interface PerformanceResourceTiming {}
  2. we extend the interface and define the NT attributes there:
    interface PerformanceNavigationTiming : PerformanceResourceTiming {}

I believe option 2 is the least disruptive.

from navigation-timing.

igrigorik avatar igrigorik commented on May 13, 2024

NT is a superset of RT.. +1 to option 2.

from navigation-timing.

toddreifsteck avatar toddreifsteck commented on May 13, 2024

+1 to option 2. Also, "algorithm" piece of the spec that refers to these fields should probably also be a pointer to a section within resource-timings spec as well.

from navigation-timing.

plehegar avatar plehegar commented on May 13, 2024

A lot of the attributes in RT have the following text:
[[
If the last non-redirected fetch of the resource is not the same origin as the current document, secureConnectionStart/responseStart/requestStart MUST return zero unless the timing allow check algorithm passes.
]]

However, NT doesn't have the text. I presume this is intended and will have to be taken into account, correct? Ie the the document being navigated to isn't from the same origin, you still return a proper value (and not zero).

from navigation-timing.

plehegar avatar plehegar commented on May 13, 2024

RT has initiatorType but NT doesn't. How about, in the case of NT, we return "navigation" for initiatorType (same as entryType)?

from navigation-timing.

plehegar avatar plehegar commented on May 13, 2024

Reassigning this one to me so that I get around it.

from navigation-timing.

plehegar avatar plehegar commented on May 13, 2024

See #36

from navigation-timing.

igrigorik avatar igrigorik commented on May 13, 2024

Resolved via #36, closing.

from navigation-timing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.