Monday, 21 October 2024

Lighthouse

How metrics are measured

Performance metrics are generally measured in one of two ways:

  • In the lab: using tools to simulate a page load in a consistent, controlled environment
  • In the field: on real users actually loading and interacting with the page

Neither of these options is necessarily better or worse than the other—in fact you generally want to use both to ensure good performance.

In the lab

Testing performance in the lab is essential when developing new features. Before features are released in production, it's impossible to measure their performance characteristics on real users, so testing them in the lab before the feature is released is the best way to prevent performance regressions.

In the field

On the other hand, while testing in the lab is a reasonable proxy for performance, it isn't necessarily reflective of how actual users experience your site.

The performance of a site can vary dramatically based on a user's device capabilities and their network conditions. It can also vary based on whether (or how) a user is interacting with the page.

Page loads are also not always deterministic. For example, sites that load personalized content or ads can experience vastly different performance characteristics from user to user. A lab test won't capture those differences.

The only way to truly know how your site performs for your users is to actually measure its performance as those users load and interact with it. This type of measurement is commonly called Real User Monitoring (RUM).

Types of metrics

There are several other types of metrics that are relevant to how users perceive performance.

  • Perceived load speed: how quickly a page can load and render all of its visual elements to the screen.
  • Load responsiveness: how quickly a page can load and execute any required JavaScript code in order for components to respond quickly to user interaction
  • Runtime responsiveness: after page load, how quickly can the page respond to user interaction.
  • Visual stability: do elements on the page shift in ways that users don't expect and potentially interfere with their interactions?
  • Smoothness: do transitions and animations render at a consistent frame rate and flow fluidly from one state to the next?

Important metrics to measure

  • First Contentful Paint (FCP): measures the time from when the page starts loading to when any part of the page's content is rendered on the screen. (lab, field)
  • Largest Contentful Paint (LCP): measures the time from when the page starts loading to when the largest text block or image element is rendered on the screen. (lab, field)
  • Cumulative Layout Shift (CLS): measures the cumulative score of all unexpected layout shifts that occur between when the page starts loading and when its lifecycle state changes to hidden. (lab, field)
  • Interaction to Next Paint (INP): measures the latency of every tap, click, or keyboard interaction made with the page, and—based on the number of interactions—selects the worst interaction latency of the page (or close to the highest) as a single, representative value to describe a page's overall responsiveness. (lab, field)
  • Time to First Byte (TTFB): measures the time it takes for the network to respond to a user request with the first byte of a resource. (lab, field)
  • Speed Index: Speed Index measures how quickly content is visually displayed during page load. Lighthouse first captures a video of the page loading in the browser and computes the visual progression between frames. (lab)
  • Total Blocking Time (TBT): measures the total amount of time between FCP and TTI where the main thread was blocked for long enough to prevent input responsiveness. (lab)

Imp. Links

Monday, 29 April 2024

Simple step by step guide to install Jio TV plugin on KODI

Step 1 - Install Kodi

Step 2 - Go to Settings > File Manager > Add Source > Enter the Website i.e https://tobalan.github.io/ > OK > Enter a Name i.e KK > OK > ADD > OK


Step 3 - Go to Settings > Add-ons > Install from ZIP file > Setting > Unknown Source > Turn ON > (Press YES if you get the warning!) > Back > Install from ZIP file > KK > repository.tobalan-2.0.1.zip > OK


Step 4 - Restart Kodi


Step 5 -  Go to Settings > Add-ons > Install from repository > TobAlan Repository > Video Add-ons > JioTV > Install > OK


Step 6 - Go to Settings > Add-ons > My Add-ons > Video Add-ons > JioTV > Configure > Account > Login > OTP > OK


Step 7 - Go to Settings > Add-ons > My Add-ons > Video Add-ons > JioTV > Configure > Setup > Setup Sample IPTV PVR > YES

Step 8 - Restart Kodi

Step 9 - Go to TV