SlideShare a Scribd company logo
Browser and Beyond @
Component Library
Development
Core Web Vitals
Production
Observability
Monitoring
Kaushal Anjali
Ankita
Apoorva
Faiza
Pallavi
Topics and Speakers
Kaushal
Anjali
Component library
A component library is an isolated cloud-based folder that consists of all the
designed/styled parts of a website or piece of software.
*
A common goal shared by all developers is to be able to design and develop
components that enable them to ship out their features
At redbus, we decided to create a reusable component library across the teams that
would aid developers in building UIs seamlessly and more efficiently.
*
*
Why Component Library?
1
1
1
2
Collaborate effectively with speed
Consistency in the UI
Reusability
Customization and Flexibility
1
2
3
4
Robust and Lesser Bugs
5
Atomic Design
● Multiple UI components that are isolated and reusable.
● Combining atoms to form Molecules, which can be combined to form organisms
and further, templates and pages.
Examples
Implementation Details
Tech stack for building the component library in-house consists of:
React + Typescript
Storybook
Styled components
Lerna
Courtesy: https://reactjs.org/, https://www.typescriptlang.org/, https://storybook.js.org/,
https://styled-components.com/, https://www.npmjs.com/package/lerna
f
Example
Conclusion
1
1
1
2
Next step
250+ components created
Used across multiple projects within redBus
~20 - 30% reduction in dev effort, timeline
Make components open source
1
2
3
4
100% componentisation
Open source component library updates
1
2
Open source Component Library - redBus Storybook
Open source code - Github Link
Use the Chrome Rendering Section:
Core Web Vitals
Ankita
Pallavi
● Web vitals is an initiative introduced by google
● Optimizing quality of user experience is key to
the success of your website
● Core Web vitals focuses on 3 main aspects :
Introduction
Courtesy: Web Vitals
CLS: Visual Stability
LCP: Loading Experience
FID: Interactivity
1
2
3
Use the Chrome Rendering Section:
Cumulative Layout Shift
What is CLS?
By definition, CLS is the movement of
page elements loaded on the page to
a different position from their existing
position due to some unexpected
factors.
I.e. Visual Stability of the page
What is a good CLS score?
To provide a good user experience, sites should strive to have a
CLS score of 0.1 or less.
*
Measuring the CLS score
Lighthouse - Chrome Dev Tools
Rendering Options
What are some CLS contributors?
Delay in loading relevant
CSS file , space is allocated
after browser starts
downloading the image
Advertisements
(Promotions/offers) ,
added at runtime
App installs,iFrame
injections, Third Party
content etc.
Component should not
be rendered based on
API response
Courtesy: Chrome Web Developers’ 2020 Summit,image showing the Cumulative Layout Shift (CLS) Reasons.
Optimizations
Before:
After:
Placeholders for banners at the top
and middle section of the page
Move components to the bottom of the
page such that they are not visible on
the initial load
Change up the animations/loaders
used on the page
2
Image Dimensions
1
3
4
Impact
Domain
Ranking
percentage
Date
Improved Domain Ranking/ SEO ranking
Improvements in TTI score. Quicker site
= greater chance of users converting
Provided a better user experience
1
2
3
Use the Chrome Rendering Section:
Largest Contentful Paint
What is LCP?
Courtesy: https://blockthrough.com/
LCP is measured
when the largest
element of a
webpage becomes
visible in the user’s
browser
The LCP element is
usually the hero
image or a large text
paragraph
What is a good LCP score?
To provide a good user experience, sites should have an LCP of
2.5sec or lesser
*
How can we measure the LCP score?
Lighthouse - Performance Tab PageSpeed Insights
Lighthouse - Chrome Dev Tools
What are some major LCP contributors?
Unoptimised Images
Courtesy:
1) Dominik Scythe on Unsplash
2) https://serverguy.com/
3) https://blog.duda.co/
Increased server response time
Render-blocking Resources
Optimizations
Courtesy: seo-hacker.com
Optimising Images
1
Preloading critical resources like fonts,
above the fold images, css and javascript
Using inline critical css and deferring non
critical resources
Making use of CDN, caching and service
worker
2
4
3
Use the Chrome Rendering Section:
First Input Delay
What is FID?
First Input Delay measures the interactivity
of your webpage.
Few Examples :
Courtesy of : Quantummetric
Choosing an option from a menu
Clicking on a link
Tapping on an accordion and it
opening up
1
2
3
What is a good FID score?
Your FID should happen within 100 milliseconds
*
Causes for Poor FID:
Long Tasks
Heavy Javascript Execution
Time
Large Javascript Bundles
Render Blocking JS
1
2
3
4
Courtesy: Chrome Web Developers’ 2020 Summit,image showing the FID Reasons.
Optimizations
Lazy loading JS chunks
Use of Web workers
Minifying CSS files
Deferring non-critical JS, third party
libraries
Optimize DOM size
1
5
4
3
2
Courtesy: https://moz.com/learn/seo/performance-metrics
Impact
Impact in loading time of PER/COL
mobile website by ~1.5-2 sec
Total block time was reduced from 1.2
sec to ~ 0.72 sec
Improvement in TTI of the page and
speed index of the page
1
2
3
Measuring Web Vitals
Lighthouse - Chrome Dev Tools
Rendering Options
Page Speed Insights
Observability
Observability
Apoorva
Faiza
E#E#ju4N8@Courtesy of KatieLingo
k$87ju4N8@k$87E#ju4N8@k$87
What is Observability?
An ‘observable’ system centralizes information and continuously monitors the system
to detect undesirable behaviours and lets debug production issues efficiently.
Why Observability?
Greater control over
complex systems.
Aids visibility in terms of
debugging and
performance tuning.
Real User Monitoring (RUM)
RUM captures real
user interaction on a
web browser to
quantify and
measure the
user experience
performance of the
application.
Browser core red bus presentation
Distributed Tracing
Developer productivity.
Customizable data visualization.
Real User Monitoring - Impact
1
4
Visibility into user distribution to measure
performance.
2
Quick turnaround on issues before impacting
production.
3
Browser core red bus presentation
Error Tracking
At redBus, we have error
dashboards to identify and
track down the errors.
Error Dashboard
How we track Errors ?
What caused the error?
Machine Learning (Anomaly Detection)
Spot anomalies according to
configuration using
unsupervised learning.
Data pulled from elastic search
for analysis and anomaly results
are displayed in Dashboards.
To determine when the request
rate on your web site drops
significantly.
ML Watcher Alert
Watcher alerts/notifies on scanning for recently created anomalies over a certain interval.
Anomaly Explorer
You can see an overall
score and shared
influencers for all the
metrics and all the
entities in the job
Observability Credits : ELK Stack
(ElasticSearch and Kibana)
Thank You
https://medium.com/redbus-in/engineering/home
https://github.com/redbus-labs/rbComponentLibrary
Browser and Beyond @ redBus
PART 2

More Related Content

DOC
srinath_latest
PPTX
Best cross platform app development frameworks for 2021
PPTX
Mobility testing day_1_ppt
DOC
Wifi sharing
PDF
How to increase the ui performance of apps designed using react
PDF
Angular 12 brought several new features to the table
PDF
React native vs react js
PDF
What makes xamarin the best choice for multiplatform app development
srinath_latest
Best cross platform app development frameworks for 2021
Mobility testing day_1_ppt
Wifi sharing
How to increase the ui performance of apps designed using react
Angular 12 brought several new features to the table
React native vs react js
What makes xamarin the best choice for multiplatform app development

What's hot (20)

PDF
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
PPTX
Javascript frameworks
PDF
React native vs. ionic – which one is better and why
PPTX
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
PDF
React js vs angularjs which framework to choose in 2022_
PPT
EGL Conference 2011 - EGL Overview
PPT
Android presentation slide
PDF
Most recommended android app development frameworks for app development
PDF
Why react native has become the winning choice for cross platform development
PDF
What do you need to know about g rpc on .net
PPTX
Mobile Apps Develpment - A Comparison
PDF
Why is flutter considered the best cross platform framework
DOCX
Get Codeigniter Developement Services From Us
PDF
Why does .net maui deserve your attention if you’re planning to use xamarin
PDF
Mobilefirst - Build Enterprise Class Apps for Mobile First
PDF
White paper native, web or hybrid mobile app development
PDF
Sravan Kumar Resume
PDF
MyAppConverter DroidconUK 2014
PDF
The Best Alternatives To The Ionic Framework.pdf
PDF
Modern JavaScript Applications: Design Patterns
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
Javascript frameworks
React native vs. ionic – which one is better and why
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
React js vs angularjs which framework to choose in 2022_
EGL Conference 2011 - EGL Overview
Android presentation slide
Most recommended android app development frameworks for app development
Why react native has become the winning choice for cross platform development
What do you need to know about g rpc on .net
Mobile Apps Develpment - A Comparison
Why is flutter considered the best cross platform framework
Get Codeigniter Developement Services From Us
Why does .net maui deserve your attention if you’re planning to use xamarin
Mobilefirst - Build Enterprise Class Apps for Mobile First
White paper native, web or hybrid mobile app development
Sravan Kumar Resume
MyAppConverter DroidconUK 2014
The Best Alternatives To The Ionic Framework.pdf
Modern JavaScript Applications: Design Patterns
Ad

Similar to Browser core red bus presentation (20)

PPTX
Browser core red bus presentation
PDF
Web performance as rocket science
PDF
Digital Marketing Course | Importance of core web vitals
PDF
Core Web Vitals in Website Design.pdf
PPTX
An Introduction to Pagespeed Optimisation
PDF
Optimizing a React application for Core Web Vitals
PPTX
Rachel Costello — The Landscape of Site Speed and Web Vitals
PDF
Core web vitals – Business impact and best practices - Meet Magento UK 2021
PPTX
New Ranking Metrics by Google
PDF
Demystifying web performance tooling and metrics
PPTX
2020 Chrome Dev Summit: Web Performance 101
PPTX
Web Vitals.pptx
PPTX
Conquer User Attention: Master Core Web Vitals for a Flawless User Experience
PDF
FID, CLS, LCP--WTF?
PPTX
Core web Vitals: Web Performance and Usability
PDF
TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...
PPTX
Measuring User on the web with the core web vitals - by @theafolayan.pptx
PDF
Keep the Web Fast
PDF
CrUx Report and Improving Web vitals
Browser core red bus presentation
Web performance as rocket science
Digital Marketing Course | Importance of core web vitals
Core Web Vitals in Website Design.pdf
An Introduction to Pagespeed Optimisation
Optimizing a React application for Core Web Vitals
Rachel Costello — The Landscape of Site Speed and Web Vitals
Core web vitals – Business impact and best practices - Meet Magento UK 2021
New Ranking Metrics by Google
Demystifying web performance tooling and metrics
2020 Chrome Dev Summit: Web Performance 101
Web Vitals.pptx
Conquer User Attention: Master Core Web Vitals for a Flawless User Experience
FID, CLS, LCP--WTF?
Core web Vitals: Web Performance and Usability
TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...
Measuring User on the web with the core web vitals - by @theafolayan.pptx
Keep the Web Fast
CrUx Report and Improving Web vitals
Ad

Recently uploaded (20)

PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Digital Logic Computer Design lecture notes
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
web development for engineering and engineering
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Sustainable Sites - Green Building Construction
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
composite construction of structures.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Foundation to blockchain - A guide to Blockchain Tech
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Digital Logic Computer Design lecture notes
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
web development for engineering and engineering
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
UNIT 4 Total Quality Management .pptx
additive manufacturing of ss316l using mig welding
Internet of Things (IOT) - A guide to understanding
Sustainable Sites - Green Building Construction
Model Code of Practice - Construction Work - 21102022 .pdf
Operating System & Kernel Study Guide-1 - converted.pdf
573137875-Attendance-Management-System-original
Embodied AI: Ushering in the Next Era of Intelligent Systems
composite construction of structures.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

Browser core red bus presentation

  • 2. Component Library Development Core Web Vitals Production Observability Monitoring Kaushal Anjali Ankita Apoorva Faiza Pallavi Topics and Speakers
  • 4. Component library A component library is an isolated cloud-based folder that consists of all the designed/styled parts of a website or piece of software. * A common goal shared by all developers is to be able to design and develop components that enable them to ship out their features At redbus, we decided to create a reusable component library across the teams that would aid developers in building UIs seamlessly and more efficiently. * *
  • 5. Why Component Library? 1 1 1 2 Collaborate effectively with speed Consistency in the UI Reusability Customization and Flexibility 1 2 3 4 Robust and Lesser Bugs 5
  • 6. Atomic Design ● Multiple UI components that are isolated and reusable. ● Combining atoms to form Molecules, which can be combined to form organisms and further, templates and pages.
  • 8. Implementation Details Tech stack for building the component library in-house consists of: React + Typescript Storybook Styled components Lerna Courtesy: https://reactjs.org/, https://www.typescriptlang.org/, https://storybook.js.org/, https://styled-components.com/, https://www.npmjs.com/package/lerna
  • 10. Conclusion 1 1 1 2 Next step 250+ components created Used across multiple projects within redBus ~20 - 30% reduction in dev effort, timeline Make components open source 1 2 3 4 100% componentisation Open source component library updates 1 2
  • 11. Open source Component Library - redBus Storybook
  • 12. Open source code - Github Link
  • 13. Use the Chrome Rendering Section: Core Web Vitals Ankita Pallavi
  • 14. ● Web vitals is an initiative introduced by google ● Optimizing quality of user experience is key to the success of your website ● Core Web vitals focuses on 3 main aspects : Introduction Courtesy: Web Vitals CLS: Visual Stability LCP: Loading Experience FID: Interactivity 1 2 3
  • 15. Use the Chrome Rendering Section: Cumulative Layout Shift
  • 16. What is CLS? By definition, CLS is the movement of page elements loaded on the page to a different position from their existing position due to some unexpected factors. I.e. Visual Stability of the page
  • 17. What is a good CLS score? To provide a good user experience, sites should strive to have a CLS score of 0.1 or less. *
  • 18. Measuring the CLS score Lighthouse - Chrome Dev Tools Rendering Options
  • 19. What are some CLS contributors? Delay in loading relevant CSS file , space is allocated after browser starts downloading the image Advertisements (Promotions/offers) , added at runtime App installs,iFrame injections, Third Party content etc. Component should not be rendered based on API response Courtesy: Chrome Web Developers’ 2020 Summit,image showing the Cumulative Layout Shift (CLS) Reasons.
  • 20. Optimizations Before: After: Placeholders for banners at the top and middle section of the page Move components to the bottom of the page such that they are not visible on the initial load Change up the animations/loaders used on the page 2 Image Dimensions 1 3 4
  • 21. Impact Domain Ranking percentage Date Improved Domain Ranking/ SEO ranking Improvements in TTI score. Quicker site = greater chance of users converting Provided a better user experience 1 2 3
  • 22. Use the Chrome Rendering Section: Largest Contentful Paint
  • 23. What is LCP? Courtesy: https://blockthrough.com/ LCP is measured when the largest element of a webpage becomes visible in the user’s browser The LCP element is usually the hero image or a large text paragraph
  • 24. What is a good LCP score? To provide a good user experience, sites should have an LCP of 2.5sec or lesser *
  • 25. How can we measure the LCP score? Lighthouse - Performance Tab PageSpeed Insights Lighthouse - Chrome Dev Tools
  • 26. What are some major LCP contributors? Unoptimised Images Courtesy: 1) Dominik Scythe on Unsplash 2) https://serverguy.com/ 3) https://blog.duda.co/ Increased server response time Render-blocking Resources
  • 27. Optimizations Courtesy: seo-hacker.com Optimising Images 1 Preloading critical resources like fonts, above the fold images, css and javascript Using inline critical css and deferring non critical resources Making use of CDN, caching and service worker 2 4 3
  • 28. Use the Chrome Rendering Section: First Input Delay
  • 29. What is FID? First Input Delay measures the interactivity of your webpage. Few Examples : Courtesy of : Quantummetric Choosing an option from a menu Clicking on a link Tapping on an accordion and it opening up 1 2 3
  • 30. What is a good FID score? Your FID should happen within 100 milliseconds *
  • 31. Causes for Poor FID: Long Tasks Heavy Javascript Execution Time Large Javascript Bundles Render Blocking JS 1 2 3 4 Courtesy: Chrome Web Developers’ 2020 Summit,image showing the FID Reasons.
  • 32. Optimizations Lazy loading JS chunks Use of Web workers Minifying CSS files Deferring non-critical JS, third party libraries Optimize DOM size 1 5 4 3 2 Courtesy: https://moz.com/learn/seo/performance-metrics
  • 33. Impact Impact in loading time of PER/COL mobile website by ~1.5-2 sec Total block time was reduced from 1.2 sec to ~ 0.72 sec Improvement in TTI of the page and speed index of the page 1 2 3
  • 34. Measuring Web Vitals Lighthouse - Chrome Dev Tools Rendering Options Page Speed Insights
  • 36. E#E#ju4N8@Courtesy of KatieLingo k$87ju4N8@k$87E#ju4N8@k$87 What is Observability? An ‘observable’ system centralizes information and continuously monitors the system to detect undesirable behaviours and lets debug production issues efficiently.
  • 37. Why Observability? Greater control over complex systems. Aids visibility in terms of debugging and performance tuning.
  • 38. Real User Monitoring (RUM) RUM captures real user interaction on a web browser to quantify and measure the user experience performance of the application.
  • 41. Developer productivity. Customizable data visualization. Real User Monitoring - Impact 1 4 Visibility into user distribution to measure performance. 2 Quick turnaround on issues before impacting production. 3
  • 43. Error Tracking At redBus, we have error dashboards to identify and track down the errors.
  • 45. How we track Errors ?
  • 46. What caused the error?
  • 47. Machine Learning (Anomaly Detection) Spot anomalies according to configuration using unsupervised learning. Data pulled from elastic search for analysis and anomaly results are displayed in Dashboards. To determine when the request rate on your web site drops significantly.
  • 48. ML Watcher Alert Watcher alerts/notifies on scanning for recently created anomalies over a certain interval.
  • 49. Anomaly Explorer You can see an overall score and shared influencers for all the metrics and all the entities in the job Observability Credits : ELK Stack (ElasticSearch and Kibana)
  • 51. Browser and Beyond @ redBus PART 2

Editor's Notes

  • #6: This is the speaker notes
  • #7: This is the speaker notes
  • #8: This is the speaker notes
  • #9: this is speaker notes
  • #10: This is the speaker notes
  • #11: This is the speaker notes