Code Monkey home page Code Monkey logo

Comments (3)

tunetheweb avatar tunetheweb commented on June 19, 2024 1

Completed with #442 and will be included in v4

from web-vitals.

tunetheweb avatar tunetheweb commented on June 19, 2024

Yes we should, but it's a little more complicated than that (which is why we haven't done it yet!) as an interaction may have several components.

Consider a click, which has mouseup, pointerup, and click events, but which are all part of the same interaction. The processing time of the mouseup and pointerup events can cause a "input delay" to the click event. Similarly, just cause the mouseup event happened first it would see a long "presentationDelay", but if that is due to "processingTime" of the other two events when we would't want to imply it was due to the presenation time itself.

So ideally we want to group them together into "inputDelay" for the whole interaction (i.e. all three events), the "processingTime" of the whole interaction (i.e. all three events), and finally the "presentationDelay" of the whole interaction.

So it's a bit more complicated than just looking at the "INP event" as reported by web-vitals.js now and then calculating the inputDelay, processingTime, and precentationDelay of just that one event. So we haven't got to it just yet.

FYI, more info on all this here if you want some of the full, gory, details: https://github.com/mmocny/tpac_2023_workshop_responsiveness?tab=readme-ov-file

from web-vitals.

lebreRafael avatar lebreRafael commented on June 19, 2024

Hmm so that could be the reason why I'm seeing so much time spent on presentation delay.
Thanks for clarifying

from web-vitals.

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.