Logo

dev-resources.site

for different kinds of informations.

Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals

Published at
12/27/2024
Categories
webdev
devtools
corewebvitals
performance
Author
shidhincr
Author
9 person written this
shidhincr
open
Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals

If you’re new to Live Core Web Vitals, check out my previous post:

What Are We Going to Do?

Namshi is one of the largest e-commerce websites in the UAE. Having worked at Namshi before, I was curious to test the Core Web Vitals scores of their mobile website and evaluate the user experience.

I started with their most visited webpage:

Namshi: Women's Fashion

Namshi web vitals

Using a high-speed Wi-Fi network and an M3 Pro MacBook, I conducted the test without any network or CPU throttling. The LCP (Largest Contentful Paint) score was 2.84 seconds, indicating room for improvement. The LCP metric primarily points to the banner image in the carousel.

Suggestions for improvements:

  • Use smaller placeholder images for banners.
  • Preload banner images(using link preload directive).

As I interacted with the page, the other metrics appeared satisfactory.

Namshi web vitals

Finding slowness

Namshi’s website heavily relies on modal components for features like Sort, Filter, and Search. While most modals opened and closed quickly, I noticed occasional slowness patterns. The INP (Interaction to Next Paint) score fluctuated between 60-100ms, which is generally acceptable.

Namshi web vitals

However, I discovered main-thread blocking code when toggling the “New Arrivals” modal and attempting to close it. This directly impacted the INP score. You can see the behavior in the video below:

A Worse Version?

Yes, I found an even worse scenario where the INP score turned completely RED.

This occurred when I opened the “Filter” modal, applied some filters, and then clicked “Reset Filters”. The page froze momentarily, resulting in a poor user experience.

Namshi web vitals

Suggestions for improvements:

  • Avoid blocking the main thread during user interactions, especially while applying filters.
  • Use Web Workers for computationally intensive tasks

Another Observation

By recording a Performance Profile, the issue was clearly visible in the flame chart. This method is invaluable for identifying and addressing performance bottlenecks.

Recording flame chart

performance Article's
30 articles in total
Favicon
Finding best performant stack so you don't have to.
Favicon
performance
Favicon
Identifying and Resolving Blocking Sessions in Oracle Database
Favicon
Poor man's parallel in Bash
Favicon
5 Reasons Businesses Should Give Priority to Performance Testing
Favicon
Your Roadmap to Mastering k6 for Performance Testing
Favicon
Caching in Node.js: Using Redis for Performance Boost
Favicon
When and Why You Need Sharding: A Complete Guide to Scaling Databases Efficiently
Favicon
Low latency at scale: Gaining the competitive edge in sports betting
Favicon
Using Forced Reflows, the Event Loop, and the Repaint Cycle to Slide Open a Box
Favicon
Optimizing Data Pipelines for Fiix Dating App
Favicon
gmap in GoFrame: A Deep Dive into High-Performance Concurrent Maps
Favicon
Understanding Performance Testing: Essential Insights
Favicon
Stressify.jl Performance Testing
Favicon
How to optimize SpringBoot startup
Favicon
OpenSearch metrics challenge: can you spot the performance flaw?
Favicon
Loops vs Recursividade
Favicon
Kenalpasti proses didalam fungsi kod anda adalah I/O bound atau CPU bound.
Favicon
reactJs
Favicon
Fallback Pattern in .NET Core: Handling Service Failures Gracefully
Favicon
Turbocharge Your React Apps: Unlocking Peak Performance with Proven Techniques
Favicon
SEO Optimization Checklist for Coding Your Website
Favicon
Kickstarting Weekly System Design Deep Dives: Building Scalable Systems
Favicon
How to Install Wireshark on Ubuntu
Favicon
How to optimize your website loading speed
Favicon
The Importance of Effective Logging
Favicon
Top 10 Books for Boosting Efficiency, Productivity, and Performance
Favicon
🦄 2025’s First Look: Multi-State Buttons, Preloaded Fonts & UX Retention Hacks
Favicon
Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals
Favicon
The Complete Guide to Parameter-Efficient Fine-Tuning: Revolutionizing AI Model Adaptation

Featured ones: